1
0
Fork 0
mirror of https://github.com/netz39/www.netz39.de.git synced 2025-08-11 06:20:47 +02:00

Change date format to german with german month names

This commit is contained in:
MG-5 2023-10-25 13:02:05 +02:00
commit 3a60ed4839
2 changed files with 3 additions and 3 deletions
_includes/blog

View file

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