From 1a07981212f076b22dc723f7e29accedca4ea387 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 1 May 2023 18:36:17 +0200 Subject: [PATCH] WIP Ajoute une page listant les derniers articles --- content/articles/.pages | 1 + content/articles/index.md | 9 ++ .../custom_templates/index_articles.html | 89 +++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 content/articles/index.md create mode 100644 content/theme/custom_templates/index_articles.html diff --git a/content/articles/.pages b/content/articles/.pages index b745daf8664..b9cedd9108f 100644 --- a/content/articles/.pages +++ b/content/articles/.pages @@ -1,6 +1,7 @@ title: "📖 Articles" nav: + - "Derniers articles": index.md - "2023" - "2022" - "2021" diff --git a/content/articles/index.md b/content/articles/index.md new file mode 100644 index 00000000000..292b964c46f --- /dev/null +++ b/content/articles/index.md @@ -0,0 +1,9 @@ +--- +title: "Liste des derniers articles parus" +template: custom_templates/index_articles.html +# theme customizations +search: + exclude: true +--- + + diff --git a/content/theme/custom_templates/index_articles.html b/content/theme/custom_templates/index_articles.html new file mode 100644 index 00000000000..f9b3f26a3dd --- /dev/null +++ b/content/theme/custom_templates/index_articles.html @@ -0,0 +1,89 @@ +{% extends "main.html" %} + +{% block styles %} +{{ super() }} + + +{% endblock %} + + +{% block tabs %} +{{ super() }} + + +
+
+
+
+

Geotribu

+
+
+ Bannière Geotribu +
+
+

Site collaboratif sur la géomatique libre et ouverte.

+
+
+
+
+ + +
+
+ {% if config.extra.latest %}{% for contenu in config.extra.latest.articles %} +
+
+
+

{{ contenu.title | default('Placeholder') }}

+

{{ contenu.description | default('Placeholder') }}

+
+ +
+
+ {% endfor %}{% endif %} + +
+
+ +{% endblock %} + + +{% block content %} +{% endblock %} + + +{% block footer %} + +{% endblock %}