Commit dfae230d07a83c436af568ccc4956667522f6b26

Authored by Geoffrey PREUD'HOMME
1 parent 6014189d

Date en français long

_includes/date.html 0 → 100644
... ... @@ -0,0 +1,17 @@
  1 +{% assign m = include.date | date: "%-m" %}
  2 +{{ include.date | date: "%-d" }}
  3 +{% case m %}
  4 + {% when '1' %}janvier
  5 + {% when '2' %}février
  6 + {% when '3' %}mars
  7 + {% when '4' %}avril
  8 + {% when '5' %}mai
  9 + {% when '6' %}juin
  10 + {% when '7' %}juillet
  11 + {% when '8' %}août
  12 + {% when '9' %}septembre
  13 + {% when '10' %}octobre
  14 + {% when '11' %}novembre
  15 + {% when '12' %}décembre
  16 +{% endcase %}
  17 +{{ include.date | date: "%Y" }}
... ...
_layouts/home.html
... ... @@ -11,10 +11,10 @@ layout: default
11 11 <ul class="post-list">
12 12 {% for post in site.posts %}
13 13 <li>
14   - <span class="post-meta">{{ post.date | date: "%d/%m/%Y" }}</span>
15   -
16 14 <h2>
17   - <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
  15 + <a class="post-link" href="{{ post.url | relative_url }}">
  16 + {{ post.title | escape }} du {% include date.html date=post.date %}
  17 + </a>
18 18 </h2>
19 19 </li>
20 20 {% endfor %}
... ...
_layouts/post.html
... ... @@ -7,7 +7,10 @@ layout: default
7 7 <img class="post-logo" alt="Logo du Club Info" src="{{ "/assets/logo-ci-inv.svg" | relative_url }}"/>
8 8 <h1 class="post-title" itemprop="name headline">
9 9 {{ page.title | escape }}<br/>
10   - <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%m/%d/%Y" }}</time>
  10 + du
  11 + <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
  12 + {% include date.html date=page.date %}
  13 + </time>
11 14 </h1>
12 15 {% if page.author %}
13 16 <p class="post-meta">
... ...