Skip to content

Commit 465dabc

Browse files
committed
Use language neutral "Posted By" line
1 parent c26cff0 commit 465dabc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_layouts/news_post.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ <h3>{{ page.title }}</h3>
77

88
{{ content }}
99

10-
<p class="post-info">Posted By {{ page.author }} on {{ page.date | date_to_string }}</p>
10+
{% if page.author and page.author != "" %}
11+
<p class="post-info">{{ page.author }} &ndash; {{ page.date | date_to_string }}</p>
12+
{% else %}
13+
<p class="post-info">{{ page.date | date_to_string }}</p>
14+
{% endif %}
1115
</div>

0 commit comments

Comments
 (0)