feat: improve metadata display
This commit is contained in:
parent
871fd1d629
commit
cee8bb00bc
4 changed files with 34 additions and 16 deletions
|
|
@ -8,7 +8,11 @@
|
|||
<!-- If you are using pagination, section.pages will be empty.
|
||||
You need to use the paginator object -->
|
||||
{% for page in section.pages %}
|
||||
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
|
||||
<li>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
{% if page.description %}{{ page.description }}{% endif %}
|
||||
{{ page.summary }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
|
|
@ -7,7 +7,21 @@
|
|||
{% if page.description %}
|
||||
<p class=subtitle>{{ page.description }}</p>
|
||||
{% endif %}
|
||||
<p class=metadata>par {{ page.authors | join(sep=', ') }} le {{ page.date }}{% if page.updated %} (mise à jour : {{ page.updated }}){% endif %}</p>
|
||||
<p class=metadata>
|
||||
<span> {{ page.authors | join(sep=', ') }}</span>
|
||||
|
|
||||
<span>
|
||||
<meta itemprop="datePublished" content="{{ page.date | date(format='%+') }}">
|
||||
{{ page.date | date(format='%d %b %Y') }}
|
||||
</span>
|
||||
|
|
||||
{% if page.updated %}
|
||||
<span> {{ page.updated | date(format='%d %b %Y') }}</span>
|
||||
|
|
||||
{% endif %}
|
||||
<span> {{ page.reading_time }} min</span>
|
||||
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
{{ page.content | safe }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue