www.netz39.de/_includes/blog/post_info.liquid

15 lines
680 B
Text

{% assign author = site.data.authors[include.author] %}
{% assign date = include.date | default: "today" | date: "%-d. %B %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 %}
{{ date | date: "%-d. " }}{{ site.data.language.str_months[x]}} {{ date | date: "%Y" }}
</p>
{%- if author.url -%}</a>{%- endif -%}
</div>