sharpetronics.com/_includes/author_card.html
oDinZu 25751900ed
All checks were successful
continuous-integration/drone/push Build is passing
bugs and shop updates with strapi
2022-11-02 21:41:00 -04:00

19 lines
687 B
HTML

{% 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 %}
<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">
<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 %}