Skip to content

Instantly share code, notes, and snippets.

@bicherele
Forked from patrickwelker/jekyll-localized-date
Created August 4, 2016 07:01
Show Gist options
  • Save bicherele/71235abc0cb7185e17226a58463b5561 to your computer and use it in GitHub Desktop.
Save bicherele/71235abc0cb7185e17226a58463b5561 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