Skip to content

date is shown incomplete using German localization #1027

Open
@florianbieser

Description

@florianbieser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18nIssue with i18n translations

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions