-
-
Save bicherele/71235abc0cb7185e17226a58463b5561 to your computer and use it in GitHub Desktop.
Localized date via replace in Jekyll (Example: German)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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