From 1cad4c9044d47c6653d804d7fb58581d92f96cc8 Mon Sep 17 00:00:00 2001
From: Sébastien Dailly
Date: Mon, 4 Jan 2021 13:40:21 +0100
Subject: Change organisation
---
theme/templates/abstract.html | 27 ------------
theme/templates/archives.html | 17 --------
theme/templates/article.html | 87 ---------------------------------------
theme/templates/author.html | 2 -
theme/templates/authors.html | 0
theme/templates/base.html | 54 ------------------------
theme/templates/categories.html | 17 --------
theme/templates/category.html | 11 -----
theme/templates/header.html | 4 --
theme/templates/index.html | 19 ---------
theme/templates/menu.html | 65 -----------------------------
theme/templates/meta.html | 12 ------
theme/templates/navigator.html | 15 -------
theme/templates/page.html | 13 ------
theme/templates/tag.html | 19 ---------
theme/templates/tags.html | 13 ------
theme/templates/translations.html | 10 -----
17 files changed, 385 deletions(-)
delete mode 100644 theme/templates/abstract.html
delete mode 100755 theme/templates/archives.html
delete mode 100755 theme/templates/article.html
delete mode 100755 theme/templates/author.html
delete mode 100755 theme/templates/authors.html
delete mode 100755 theme/templates/base.html
delete mode 100755 theme/templates/categories.html
delete mode 100755 theme/templates/category.html
delete mode 100755 theme/templates/header.html
delete mode 100755 theme/templates/index.html
delete mode 100755 theme/templates/menu.html
delete mode 100755 theme/templates/meta.html
delete mode 100755 theme/templates/navigator.html
delete mode 100755 theme/templates/page.html
delete mode 100755 theme/templates/tag.html
delete mode 100755 theme/templates/tags.html
delete mode 100644 theme/templates/translations.html
(limited to 'theme/templates')
diff --git a/theme/templates/abstract.html b/theme/templates/abstract.html
deleted file mode 100644
index d8fa523..0000000
--- a/theme/templates/abstract.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% macro abstract(title_level) %}
- {% for article in (articles_page.object_list if articles_page else articles) %}
-
- <{{title_level}} class="title">{{article.title }}{{title_level}}>
-
-
-
-
-
- {% if article.logo %}
-
- {% endif %}
-
- {{ article.summary }}
-
-
-
-
-
- {% endfor %}
-
- {% include 'navigator.html' %}
-{% endmacro %}
diff --git a/theme/templates/archives.html b/theme/templates/archives.html
deleted file mode 100755
index f0441d9..0000000
--- a/theme/templates/archives.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "base.html" %}
-
-{%block title %}{{ SITENAME }} - Archives{%endblock%}
-
-{% block content %}
- Archives
-
-
- {% for article in dates %}
-
- {{ article.date.date() }} |
- {{ article.title }} |
-
- {% endfor %}
-
-
-{% endblock %}
diff --git a/theme/templates/article.html b/theme/templates/article.html
deleted file mode 100755
index c9bb63c..0000000
--- a/theme/templates/article.html
+++ /dev/null
@@ -1,87 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ SITENAME }} - {{ article.title |striptags }}{% endblock %}
-
-{% block content %}
-
-
- {%include 'meta.html'%}
- {% import 'translations.html' as translations with context %}
- {{ translations.translations_for(article) }}
-
-
-
- {{ article.content }}
-
-
-
-
- {% if article.related_posts and article.related_posts %}
-
-
- À lire aussi :
-
-
- {% endif %}
-
-
- {% if DISQUS_SITENAME %}
-
-
-
-
- {% endif %}
-
-{% endblock %}
diff --git a/theme/templates/author.html b/theme/templates/author.html
deleted file mode 100755
index 0b37290..0000000
--- a/theme/templates/author.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% extends "index.html" %}
-{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
diff --git a/theme/templates/authors.html b/theme/templates/authors.html
deleted file mode 100755
index e69de29..0000000
diff --git a/theme/templates/base.html b/theme/templates/base.html
deleted file mode 100755
index 6f44bb4..0000000
--- a/theme/templates/base.html
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
- {% block title %}{{ SITENAME }}{%endblock%}
-
-
-
- {% if tag %}
- {% if TAG_FEED_ATOM %}
-
- {% endif %}
- {% if TAG_FEED_RSS %}
-
- {% endif %}
- {% endif %}
- {% if category %}
- {% if CATEGORY_FEED_ATOM %}
-
- {% endif %}
- {% if CATEGORY_FEED_RSS %}
-
- {% endif %}
- {% endif %}
-
- {% if GOOGLE_ANALYTICS %}
-
-
- {% endif %}
-
-
-
-
-{% include 'header.html' %}
-{% include 'menu.html' %}
-
-
-{% block content %}
-{% endblock %}
-
-
-
-
-
-
diff --git a/theme/templates/categories.html b/theme/templates/categories.html
deleted file mode 100755
index b63eef8..0000000
--- a/theme/templates/categories.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ SITENAME }} - Catégories{% endblock %}
-
-{% block content %}
-Liste des catégories
-
-{% for category, articles in categories %}
- -
- {{ category }} ({{ articles|count }})
- {% if CATEGORY_FEED_RSS %}
-
- {% endif %}
-
-{% endfor %}
-
-{% endblock %}
diff --git a/theme/templates/category.html b/theme/templates/category.html
deleted file mode 100755
index f00be70..0000000
--- a/theme/templates/category.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
-
-{% block content %}
- Articles dans la catégorie « {{ category }} »
- {% if articles %}
- {% import 'abstract.html' as abstract with context %}
- {{ abstract.abstract("h2") }}
- {% endif %}
-
-{% endblock %}
diff --git a/theme/templates/header.html b/theme/templates/header.html
deleted file mode 100755
index eaf9531..0000000
--- a/theme/templates/header.html
+++ /dev/null
@@ -1,4 +0,0 @@
-
diff --git a/theme/templates/index.html b/theme/templates/index.html
deleted file mode 100755
index e35bb04..0000000
--- a/theme/templates/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - Accueil{% endblock %}
-
-{% block content %}
-
- {% if articles %}
- {% import 'abstract.html' as abstract with context %}
- {{ abstract.abstract("h1") }}
- {% endif %}
-
- {% if FEED_RSS %}
-
- {% endif %}
-
- {% if FEED_ATOM %}
-
- {% endif %}
-
-{% endblock %}
diff --git a/theme/templates/menu.html b/theme/templates/menu.html
deleted file mode 100755
index 28bc1e7..0000000
--- a/theme/templates/menu.html
+++ /dev/null
@@ -1,65 +0,0 @@
-{% macro submenu(elements, link, name) -%}
- {% if elements %}
- {{name}}
-
- {% for tag, articles in elements %}
- - {{ tag }}
- {% endfor %}
-
-
- {% endif %}
-{%- endmacro %}
-
-
diff --git a/theme/templates/meta.html b/theme/templates/meta.html
deleted file mode 100755
index 287f6b2..0000000
--- a/theme/templates/meta.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
- Publié le
-{# {% if article.author %} par {{ article.author }}{% endif %} #}
- dans
- « {{ article.category }} ».
- {% if article.tags %}
- Mots-clefs :
- {% for tag in article.tags %}{%if loop.index > 1%},{%endif%}
- {{ tag }}{% endfor %}
-
- {% endif %}
-
diff --git a/theme/templates/navigator.html b/theme/templates/navigator.html
deleted file mode 100755
index 555dda5..0000000
--- a/theme/templates/navigator.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% if articles_page %}
-
-{% endif%}
diff --git a/theme/templates/page.html b/theme/templates/page.html
deleted file mode 100755
index 114daea..0000000
--- a/theme/templates/page.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ page.title | striptags }}{% endblock %}
-{% block content %}
-
- {% if PDF_PROCESSOR %}get
- the pdf{% endif %}
-
-
-
-{% endblock %}
diff --git a/theme/templates/tag.html b/theme/templates/tag.html
deleted file mode 100755
index dbe2d82..0000000
--- a/theme/templates/tag.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
-
-{% block content %}
- Articles avec le mot-clef « {{ tag }} »
- {% if articles %}
- {% import 'abstract.html' as abstract with context %}
- {{ abstract.abstract("h2") }}
- {% endif %}
-
- {% if TAG_FEED_RSS %}
-
- {% endif %}
-
- {% if TAG_FEED_ATOM %}
-
- {% endif %}
-
- {% endblock %}
diff --git a/theme/templates/tags.html b/theme/templates/tags.html
deleted file mode 100755
index 7193694..0000000
--- a/theme/templates/tags.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ SITENAME }} - Mots-clés{% endblock %}
-
-{% block content %}
-Liste des mots-clefs
-
-{% for tag, articles in tags %}
-- {{ tag }} ({{ articles|count }})
-
-{% endfor %}
-
-{% endblock %}
diff --git a/theme/templates/translations.html b/theme/templates/translations.html
deleted file mode 100644
index 121ff1a..0000000
--- a/theme/templates/translations.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{% macro translations_for(article) %}
-{% if article.translations %}
-
-Traductions :
-{% for translation in article.translations %}
-{{ translation.lang }}
-{% endfor %}
-
-{% endif %}
-{% endmacro %}
--
cgit v1.2.3
Commentaires :
-- {% for comment in article.disqus_comments recursive %} --
-
-
-
-
-
-
- {{ comment.author.name }}
- {{ comment.createdAt }}
-
-
-
-
- {% if comment.children %}
-
- {% endfor %}
-
- {% else %} - Aucun commentaire pour l'instant. - {% endif %} -- {{ loop(comment.children) }} -
- {% endif %} -