www.netz39.de/_includes/blog/post_info.liquid
2023-10-16 01:36:59 +02:00

15 lines
688 B
Text

{% assign author = site.data.authors[include.author] %}
{% assign date = include.date | default: "today" | date: "%B %-d, %Y" %}
<div class="post-info">
{%- if author.url -%}<a href="{{ author.url | relative_url }}" target="_blank" rel="noopener">{%- endif -%}
{% if author.avatar %}
<img alt="Author's avatar" src="{{ author.avatar | relative_url }}" loading="lazy">
{% endif %}
<p class="meta">
{% if author.name %}{{ author.name }} - {% endif %}
{% assign x = date | date: "%m" | minus: 1 %}
{{ site.data.language.str_months[x] | default: date | date: "%B" }} {{ date | date: "%d, %Y" }}
</p>
{%- if author.url -%}</a>{%- endif -%}
</div>