Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date is shown incomplete using German localization #1027

Open
florianbieser opened this issue Mar 2, 2025 · 0 comments · May be fixed by #1028
Open

date is shown incomplete using German localization #1027

florianbieser opened this issue Mar 2, 2025 · 0 comments · May be fixed by #1028
Labels
i18n Issue with i18n translations

Comments

@florianbieser
Copy link

florianbieser commented Mar 2, 2025

Language

German (de-DE)

What's the issue?

In German-speaking countries, a date like "2020-08-14" (the 14th of August 2020) is often written as "14. August 2020" (this is the localization of :date_long for de-DE). Due to the fact that the date in the article header, which shows the article date, is processed using the "markdownify" function, the date is interpreted as an ordered list starting at the Day (In the example, "14"):

<time datetime="2020-08-14 00:00:00 +0000 UTC">
  <ol start="14">
    <li>August 2020</li>
  </ol>
</time>

Since the ordered list has the style setting "list-style: none;", the Day (14) is not displayed at all.

This issue can be observed (as example) on the following pages:
https://jpanther.github.io/congo/de/samples/icons/
https://jpanther.github.io/congo/de/samples/

Theme version

v2.11.0

Hugo version

v0.124.1

Relevant Hugo log output

@florianbieser florianbieser added the i18n Issue with i18n translations label Mar 2, 2025
@davidolrik davidolrik linked a pull request Mar 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n Issue with i18n translations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant