first commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{% extends "base.html" %}
|
||||
{% import "macros.html" as macros %}
|
||||
|
||||
{% block title %}{{ section.title }} · {{ config.title }}{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
{% include "partials/section-header.html" %}
|
||||
|
||||
{{ section.content | safe }}
|
||||
|
||||
{{ macros::taxonomy_nav(
|
||||
kind="themes",
|
||||
heading_id="grammaire-index-title",
|
||||
title="Explorer la grammaire",
|
||||
description="Retrouver les fiches par notion grammaticale.",
|
||||
path="themes",
|
||||
link_label="Par thème grammatical"
|
||||
) }}
|
||||
|
||||
{% if section.pages %}
|
||||
<h2>Liste des fiches</h2>
|
||||
<ul class="entry-list">
|
||||
{% for page in section.pages %}
|
||||
<li>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
{% if page.description %} — {{ page.description }}{% endif %}
|
||||
{% if page.taxonomies.themes %}
|
||||
<div class="entry-list__meta">
|
||||
{{ macros::taxonomy_links(terms=page.taxonomies.themes, kind="themes") }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Aucune fiche n’est encore publiée dans cette section.</p>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user