add date in news

This commit is contained in:
mose 2017-10-25 20:20:07 +08:00
parent 55e67b71dd
commit 3f4ce2670b
3 changed files with 10 additions and 2 deletions

View file

@ -1,9 +1,9 @@
{% assign pages = site.pages | sort: 'sortkey' %}
{% assign pages = site.pages | sort: 'sortkey' | reverse %}
{% for page in pages %}
{% if page.categories contains "news" %}
<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>
{% endif %}

View file

@ -6,6 +6,12 @@ linkurl: /nouvelles/
<div class="page">
<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 %}
<div class="authors">par {{ page.authors }}</div>
{% endif %}

View file

@ -17,4 +17,6 @@ Il est disponible chez Massot, 17, rue dupin a Paris 6e.
<http://massot.com/>
Ou bien sur [amazon](http://amzn.eu/iErVzvl), si vraiment y'a pas d'autre moyen.
<br clear="both">