mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-19 04:20:10 +01:00
15 lines
688 B
Text
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>
|