Created
November 19, 2014 11:12
-
-
Save klapec/b327fd384bbb22b17987 to your computer and use it in GitHub Desktop.
Polish month formatting in 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
{% assign m = post.date | date: "%-m" %} | |
{{ post.date | date: "%-d" }} | |
{% case m %} | |
{% when '1' %}stycznia | |
{% when '2' %}lutego | |
{% when '3' %}marca | |
{% when '4' %}kwietnia | |
{% when '5' %}maja | |
{% when '6' %}czerwca | |
{% when '7' %}lipca | |
{% when '8' %}sierpnia | |
{% when '9' %}września | |
{% when '10' %}października | |
{% when '11' %}listopada | |
{% when '12' %}grudnia | |
{% endcase %} | |
{{ post.date | date: "%Y" }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment