zola-sam/templates/page.html

61 lines
2.0 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% import "macros.html" as macros %}
{% block htmltitle %}
{{ page.title }}
{% endblock htmltitle %}
{% block title %}
{{ page.title }}
{% endblock title %}
{% block content %}
{% if not page.extra.no_header %}
{% if page.date %}
{{ macros::format_date(date=page.date) }}
{% endif %}
{% if config.extra.show_word_count and not page.extra.hide_word_count %}
{% if page.date %}
· {{ page.word_count }} words
{% else %}
{{ page.word_count }} words
{% endif %}
{% endif %}
{% if config.extra.show_reading_time and not page.extra.hide_reading_time %}
{% set previous = config.extra.show_word_count and not page.extra.hide_word_count %}
{% if previous or page.date %}
· {{ page.reading_time }} min
{% else %}
{{ page.reading_time }} min
{% endif %}
{% endif %}
{% if page.taxonomies.tags %}
<div class="tag-container">
Tags : 
{% for tag in page.taxonomies.tags %}
<span class="tag">
<a href="{{ get_taxonomy_url(kind='tags', name=tag) }}">
{{ tag }}
</a>
</span>
{% endfor %}
</div>
{% endif %}
{% if page.taxonomies.authors %}
<div class="tag-container">
Auteur·trices : 
{% for author in page.taxonomies.authors %}
<span class="tag">
<a href="{{ get_taxonomy_url(kind='authors', name=author) }}">
{{ author }}
</a>
</span>
{% endfor %}
</div>
{% endif %}
<hr/>
{% endif %}
{{ page.content | safe }}
{% endblock content %}