Skip to content

Instantly share code, notes, and snippets.

@lmuzquiz
Forked from patrickwelker/jekyll-localized-date
Created November 26, 2016 21:49
Show Gist options
  • Save lmuzquiz/0c7125a1af1c6f9cf10e631ea19e2b20 to your computer and use it in GitHub Desktop.
Save lmuzquiz/0c7125a1af1c6f9cf10e631ea19e2b20 to your computer and use it in GitHub Desktop.
Localized date via replace in Jekyll (Example: German)
<time datetime="{{ post.date | %Y-%m-%d %H:%M+01:00 }}">
{{ post.date | date: "%d. %B %Y" | replace:"January","Januar" | replace:"Februar","February" | replace:"March","März" | replace:"May","Mai" | replace:"June","Juni" | replace:"July","Juli" | replace:"December","Dezember" }}
</time>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment