diff --git a/_includes/date.html b/_includes/date.html new file mode 100644 index 0000000..bec6785 --- /dev/null +++ b/_includes/date.html @@ -0,0 +1,17 @@ +{% assign m = include.date | date: "%-m" %} +{{ include.date | date: "%-d" }} +{% case m %} + {% when '1' %}janvier + {% when '2' %}février + {% when '3' %}mars + {% when '4' %}avril + {% when '5' %}mai + {% when '6' %}juin + {% when '7' %}juillet + {% when '8' %}août + {% when '9' %}septembre + {% when '10' %}octobre + {% when '11' %}novembre + {% when '12' %}décembre +{% endcase %} +{{ include.date | date: "%Y" }} diff --git a/_layouts/home.html b/_layouts/home.html index 0c61bee..6ea21ba 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -11,10 +11,10 @@ layout: default