Skip to content

Commit b6c9033

Browse files
only show 'written by' headline in footer if post has authors
1 parent a41ae9a commit b6c9033

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_layouts/post.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ <h1>{{ page.title }}</h1>
1313
{{ content }}
1414

1515
<footer>
16-
<p>Written by</p>
17-
{% include authors.html authors=page.author %}
16+
{% if page.author %}
17+
<p>Written by</p>
18+
{% include authors.html authors=page.author %}
19+
{% endif %}
1820

1921
{% if page.previous or page.next %}
2022
<nav>

0 commit comments

Comments
 (0)