add date in news
This commit is contained in:
parent
55e67b71dd
commit
3f4ce2670b
3 changed files with 10 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
|
|
||||||
{% assign pages = site.pages | sort: 'sortkey' %}
|
{% assign pages = site.pages | sort: 'sortkey' | reverse %}
|
||||||
{% for page in pages %}
|
{% for page in pages %}
|
||||||
{% if page.categories contains "news" %}
|
{% if page.categories contains "news" %}
|
||||||
<div class="partner">
|
<div class="partner">
|
||||||
<div class="name"><a href="{{ page.url }}">{{ page.title }}</a></div>
|
<div class="name"><a href="{{ page.url }}">{{ page.date }}: {{ page.title }}</a></div>
|
||||||
<div class="description">{{ page.html }}</div>
|
<div class="description">{{ page.html }}</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -6,6 +6,12 @@ linkurl: /nouvelles/
|
||||||
|
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<h1 class="page-title">{{ page.title }}</h1>
|
<h1 class="page-title">{{ page.title }}</h1>
|
||||||
|
{% if page.date %}
|
||||||
|
<span class="post-date" itemprop="datePublished" content="{{ page.date | date: "%Y-%m-%d" }}">
|
||||||
|
<i class="fa fa-calendar" title="Date de publication">
|
||||||
|
<a class="permalink" href="{{ site.url }}{{ page.url }}" itemprop="url" title="Lien permanent vers ce texte">{{ page.date }}</a> </i>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
{% if page.authors %}
|
{% if page.authors %}
|
||||||
<div class="authors">par {{ page.authors }}</div>
|
<div class="authors">par {{ page.authors }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -17,4 +17,6 @@ Il est disponible chez Massot, 17, rue dupin a Paris 6e.
|
||||||
|
|
||||||
<http://massot.com/>
|
<http://massot.com/>
|
||||||
|
|
||||||
|
Ou bien sur [amazon](http://amzn.eu/iErVzvl), si vraiment y'a pas d'autre moyen.
|
||||||
|
|
||||||
<br clear="both">
|
<br clear="both">
|
||||||
|
|
Loading…
Reference in a new issue