From 3a60ed4839ecb7dbcb3c0555d77b38cf391188d1 Mon Sep 17 00:00:00 2001 From: MG-5 Date: Wed, 25 Oct 2023 13:02:05 +0200 Subject: [PATCH] Change date format to german with german month names --- _data/language.yml | 2 +- _includes/blog/post_info.liquid | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_data/language.yml b/_data/language.yml index 377d5b2..ded51c2 100644 --- a/_data/language.yml +++ b/_data/language.yml @@ -14,7 +14,7 @@ str_javascript_required_disqus: "Please enable JavaScript to view comments." str_no_result_found: "No result found" str_cookie_approve: "Approve" str_cookie_disclaimer: "We would like to use third party cookies and scripts to improve the functionality of this website." -str_months: [January, February, March, April, May, June, July, August, September, October, November, December] +str_months: [Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember] # Localization settings cusdis_lang: # zh-cn, es, tr, pt-BR diff --git a/_includes/blog/post_info.liquid b/_includes/blog/post_info.liquid index 18d2edb..c70c448 100644 --- a/_includes/blog/post_info.liquid +++ b/_includes/blog/post_info.liquid @@ -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" %}
{%- if author.url -%}{%- endif -%} @@ -9,7 +9,7 @@

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

{%- if author.url -%}
{%- endif -%}