From e78dd2f6212bfbd293b98e4278ead77d5ab70984 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Sat, 4 Sep 2021 21:38:06 +0200 Subject: Initial commit --- templates/article.html | 60 ++++++++++++++++++++++++++++++++++++++++++++++ templates/base.html | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ templates/index.html | 20 ++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100644 templates/article.html create mode 100644 templates/base.html create mode 100644 templates/index.html (limited to 'templates') diff --git a/templates/article.html b/templates/article.html new file mode 100644 index 0000000..0ecb737 --- /dev/null +++ b/templates/article.html @@ -0,0 +1,60 @@ +{% extends "base.html" %} +{% block html_lang %}{{ article.lang }}{% endblock %} + +{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %} + +{% block head %} + {{ super() }} + + {% import 'translations.html' as translations with context %} + {% if translations.entry_hreflang(article) %} + {{ translations.entry_hreflang(article) }} + {% endif %} + + {% if article.description %} + + {% endif %} + + {% for tag in article.tags %} + + {% endfor %} + +{% endblock %} + +{% block content %} +
+
+

+ {{ article.title }}

+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} +
+
+ Publié le + + {% if article.modified %} + et modifié le + + {% endif %} + {% if article.category %} + dans la catégorie {{ article.category }} + {% endif %} + {% if article.tags %} +
+ Tags: + {% for tag in article.tags %} + {{ tag }} + {% endfor %} +
+ {% endif %} +
+
+ {{ article.content }} +
+
+{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..efb4fca --- /dev/null +++ b/templates/base.html @@ -0,0 +1,64 @@ + + + + {% block head %} + {% block title %}{{ SITENAME }}{% endblock title %} + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} + {% if CATEGORY_FEED_ATOM and category %} + + {% endif %} + {% if CATEGORY_FEED_RSS and category %} + + {% endif %} + {% if TAG_FEED_ATOM and tag %} + + {% endif %} + {% if TAG_FEED_RSS and tag %} + + {% endif %} + + {% endblock head %} + + + + + +
+ {% block content %} + {% endblock %} + +
+ + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..a020bb1 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% block content %} +
+{% block content_title %} +{% endblock %} + +{% for article in articles_page.object_list %} + +{% endfor %} +{% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} +{% endif %} +
+{% endblock content %} -- cgit v1.2.3