generate tags pages with jinja template

This commit is contained in:
Tykayn 2025-02-20 15:31:44 +01:00 committed by tykayn
parent 8e32423dce
commit 367c7754c6
8 changed files with 178 additions and 42 deletions

View file

@ -28,8 +28,8 @@
</head>
<body>
<div id="page" class="page__{{template_content[" PAGE_SLUG"]}}">
<header id="masthead" class="site-header">
<div id="page" class="page_article page__{{template_content['PAGE_SLUG']}} ">
<header id=" masthead" class="site-header">
<div class="header-image" style="background-image: url('{{template_content[" BANNIERE_ENTETE"]}}');
background-repeat: no-repeat; background-size: cover;">
<a href="/">
@ -73,7 +73,9 @@
<main class="body-wrap boxed-container">
<article class="content">
<h1 class="article-title">
{{ article.title }}
</h1>
<div class="article-main-content">{{ article.html_content | safe }}</div>
<div class="article-date">
{{article.date_formattee}}
@ -83,7 +85,7 @@
{% if article.tags %}
Tags:
{% for tag in article.tags %}
<a href="/tags/{{ tag }}">{{ tag }}</a>
<a href="/tag/{{ tag }}">{{ tag }}</a>
{% endfor %}
{% endif %}
</div>