Skip to content

Commit d7ba772

Browse files
authored
feat: add post author after date if specified (#89)
1 parent 3948b74 commit d7ba772

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_layouts/post.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ <h1 class="post-title">{{ page.title }}</h1>
1313
{% endfor %}
1414
</div>
1515
{% endif %}
16-
<div class="post-date">Published on {{ page.date | date_to_string }}</div>
16+
<div class="post-date">
17+
Published on {{ page.date | date_to_string }}
18+
{% if page.author != null %}
19+
by {{ page.author }}
20+
{% endif %}
21+
</div>
1722
{% if page.description != null %}
1823
<noscript>
1924
<div class="post-description">{{ page.description }}</div>

0 commit comments

Comments
 (0)