sharpetronics.com/_includes/author_card.html

19 lines
687 B
HTML
Raw Normal View History

2021-01-13 18:58:23 -05:00
{% comment %}
The author metadata for both posts and post single pages.
{% endcomment %}
{% if post == blank %}
{% comment %}
Fix display bug when author data is empty.
{% endcomment %}
2022-11-02 21:41:00 -04:00
<div class="meta">
<time class="published">{{ page.date | date_to_string }}</time>
<h5 class="author"><img src="{{ page.author_image }}" alt="{{ page.author }}" /><span class="name">{{ page.author }}</span></h5>
</div>
{% else %}
<div class="meta">
2022-11-02 21:41:00 -04:00
<time class="published">{{ post.date | date_to_string }} </time>
<h5 class="author"><img src="{{ post.author_image }}" alt="{{ post.author }}" /><span class="name">{{ post.author }}</span></h5>
</div>
{% endif %}