Created
August 8, 2018 17:23
-
-
Save drunkensouljah/fae74a7cc59db81a34760a1a002db1c5 to your computer and use it in GitHub Desktop.
[Jekyll Date Format] German Date in Jekyll #jekyll
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
| <small> | |
| <time datetime="{{ post.date }}" class="blogpost-time"><!-- Whitespace added for readability --> | |
| {% assign m = post.date | date: "%-m" %} | |
| {{ post.date | date: "%-d" }}. | |
| {% case m %} | |
| {% when '1' %}Januar | |
| {% when '2' %}Februar | |
| {% when '3' %}März | |
| {% when '4' %}April | |
| {% when '5' %}Mai | |
| {% when '6' %}Juni | |
| {% when '7' %}Juli | |
| {% when '8' %}August | |
| {% when '9' %}September | |
| {% when '10' %}Oktober | |
| {% when '11' %}November | |
| {% when '12' %}Dezember | |
| {% endcase %} | |
| {{ post.date | date: "%Y" }} | |
| </time> | |
| </small> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment