Skip to content

Instantly share code, notes, and snippets.

@klapec
Created November 19, 2014 11:12
Show Gist options
  • Save klapec/b327fd384bbb22b17987 to your computer and use it in GitHub Desktop.
Save klapec/b327fd384bbb22b17987 to your computer and use it in GitHub Desktop.
Polish month formatting in Jekyll
{% 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