Skip to content

Commit 5aded0d

Browse files
committed
Consistently use language neutral "Posted By" line
1 parent 71b7cf7 commit 5aded0d

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

_layouts/news.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
2828

2929
<p><a href="{{ post.url }}">Continue Reading...</a></p>
3030

31-
<p class="post-info">Posted by {{ post.author }} on {{ post.date | date_to_string }}</p>
31+
{% if post.author and post.author != "" %}
32+
<p class="post-info">{{ post.author }} &ndash; {{ post.date | date_to_string }}</p>
33+
{% else %}
34+
<p class="post-info">{{ post.date | date_to_string }}</p>
35+
{% endif %}
3236
</div>
3337
{% endfor %}
3438
</div>

_layouts/news_archive_month.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
2222

2323
<p><a href="{{ post.url }}">Continue Reading...</a></p>
2424

25-
<p class="post-info">Posted by {{ post.author }} on {{ post.date | date_to_string }}</p>
25+
{% if post.author and post.author != "" %}
26+
<p class="post-info">{{ post.author }} &ndash; {{ post.date | date_to_string }}</p>
27+
{% else %}
28+
<p class="post-info">{{ post.date | date_to_string }}</p>
29+
{% endif %}
2630
</div>
2731
{% endfor %}
2832

_layouts/news_archive_year.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
2222

2323
<p><a href="{{ post.url }}">Continue Reading...</a></p>
2424

25-
<p class="post-info">Posted by {{ post.author }} on {{ post.date | date_to_string }}</p>
25+
{% if post.author and post.author != "" %}
26+
<p class="post-info">{{ post.author }} &ndash; {{ post.date | date_to_string }}</p>
27+
{% else %}
28+
<p class="post-info">{{ post.date | date_to_string }}</p>
29+
{% endif %}
2630
</div>
2731
{% endfor %}
2832
</div>

0 commit comments

Comments
 (0)