Last active
March 8, 2019 19:14
-
-
Save augustoproiete/d8d37527f9efb95ebe274ca6132bd424 to your computer and use it in GitHub Desktop.
Printing month name in Portuguese using Liquid/Jekyll
This file contains 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 = page.date | date: "%-m" %} | |
{% capture month_name_pt %} | |
{% 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 %} | |
{% endcapture %} | |
{{ page.date | date: "%-d" }} de {{ month_name_pt }} de {{ page.date | date: "%Y" }} às {{ page.date | date: "%H:%M" }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Muito bom!