mono-3d.fr/templates/section.html

38 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2026-04-16 05:22:41 +02:00
{% extends "base.html" %} {% block content %}
<h2 class="title is-3">{{- section.title -}}</h2>
{%- if section.extra.subtitle -%}
2026-04-19 04:06:15 +02:00
<p class="subtitle is-5">
2026-04-16 05:22:41 +02:00
{{- section.extra.subtitle -}}
</p>
{%- endif -%}
<section class="content-section">{{- section.content | safe -}}</section>
2026-04-17 00:29:49 +02:00
<div class="grid mt-5">
2026-04-16 05:22:41 +02:00
{%- for page in section.pages -%}
<div class="card cell">
<header class="card-header">
<p class="card-header-title">{{ page.title }}</p>
</header>
<div class="card-image">
2026-04-17 00:29:49 +02:00
<figure class="image is-square">
<a href="{{ page.path }}">
2026-04-16 05:22:41 +02:00
<img
2026-04-17 00:29:49 +02:00
src="{{ page.path ~ page.extra.img }}"
2026-04-16 05:22:41 +02:00
alt="{{ page.extra.alt | default(value="") }}"
/>
2026-04-17 00:29:49 +02:00
</a>
2026-04-16 05:22:41 +02:00
</figure>
</div>
<div class="card-content">
2026-04-17 00:29:49 +02:00
<div class="content">{{ page.content | split(pat="<!-- cut -->") | first | safe }}</div>
2026-04-16 05:22:41 +02:00
</div>
<footer class="card-footer">
<a href="{{ page.path }}" class="card-footer-item">Lire le détail</a>
</footer>
</div>
{%- endfor -%}
</div>
{% endblock content %}