Created
November 18, 2015 12:50
-
-
Save brunopulis/5f213de4f4fb8c25317c to your computer and use it in GitHub Desktop.
Convert date to pt_br
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
<!-- Whitespace added for readability --> | |
{% assign m = page.date | date: "%-m" %} | |
{{ page.date | date: "%-d" }} | |
{% case m %} | |
{% when '1' %}Janeiro | |
{% when '2' %}Fevereiro | |
{% when '3' %}Março | |
{% when '4' %}Abril | |
{% when '5' %}Maio | |
{% when '6' %}Junho | |
{% when '7' %}Julho | |
{% when '8' %}Agosto | |
{% when '9' %}Setembro | |
{% when '10' %}Outubro | |
{% when '11' %}Novembro | |
{% when '12' %}Dezembro | |
{% endcase %} | |
{{ page.date | date: "%Y" }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment