This commit is contained in:
OniriCorpe 2026-04-17 00:29:49 +02:00
parent 26bb0eefee
commit 27902651d5
10 changed files with 59 additions and 48 deletions

View file

@ -1,14 +1,20 @@
{% extends "base.html" %} {% block content %}
<h2 class="title is-3">{{- page.title -}}</h2>
{% set ancestor = page.relative_path | split(pat="/") | first %} {%- if ancestor
in ["creation", "reparation"] -%}
<p class="subtitle is-5 has-text-primary-dark">SECTION</p>
{% set ancestor = get_section(path=page.ancestors | last) %} {%- if
ancestor.title in ["Création", "Réparation"] -%}
<p class="subtitle is-5 has-text-primary-dark">{{ ancestor.title }}</p>
{%- endif -%} {%- if page.date -%}
<time datetime="{{ page.date }}">
Réalisé le
<span class="is-info">{{ page.date | date(format="%Y-%m-%d") }}</span>
</time>
<p class="mb-5">
<time datetime="{{ page.date }}">
Réalisé le
<span class="is-info"
>{{ page.date | date(locale="fr_FR", format="%d %B %Y") }}</span
>
</time>
</p>
{%- endif -%}
<section class="content-section">{{- page.content | safe -}}</section>
{% endblock content %}