aboutsummaryrefslogtreecommitdiff
path: root/theme/templates
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-01-04 13:40:21 +0100
committerSébastien Dailly <sebastien@chimrod.com>2021-01-05 11:06:20 +0100
commit1cad4c9044d47c6653d804d7fb58581d92f96cc8 (patch)
tree9696b75a4288976a00dbfc694090768ac93cdd14 /theme/templates
parent0c09a00a0b298cbd3bbd0082cc1026e22db9b1c5 (diff)
Change organisation
Diffstat (limited to 'theme/templates')
-rw-r--r--theme/templates/abstract.html27
-rwxr-xr-xtheme/templates/archives.html17
-rwxr-xr-xtheme/templates/article.html87
-rwxr-xr-xtheme/templates/author.html2
-rwxr-xr-xtheme/templates/authors.html0
-rwxr-xr-xtheme/templates/base.html54
-rwxr-xr-xtheme/templates/categories.html17
-rwxr-xr-xtheme/templates/category.html11
-rwxr-xr-xtheme/templates/header.html4
-rwxr-xr-xtheme/templates/index.html19
-rwxr-xr-xtheme/templates/menu.html65
-rwxr-xr-xtheme/templates/meta.html12
-rwxr-xr-xtheme/templates/navigator.html15
-rwxr-xr-xtheme/templates/page.html13
-rwxr-xr-xtheme/templates/tag.html19
-rwxr-xr-xtheme/templates/tags.html13
-rw-r--r--theme/templates/translations.html10
17 files changed, 0 insertions, 385 deletions
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) %}
- <article class="post">
- <{{title_level}} class="title"><a href="{{ SITEURL }}/{{ article.url}}">{{article.title }}</a></{{title_level}}>
-
-
- <time class="meta" datetime="{{ article.date.isoformat() }}" pubdate="pubdate">{{ article.locale_date }}</time>
- <section class="post_content">
-
- {% if article.logo %}
- <div class="floatleft figure">
- <img src="{{ SITEURL }}/{{article.logo}}" style="max-width: 75px">
- </div>
- {% endif %}
-
- {{ article.summary }}
- <div class="floatright">
- <a href="{{ SITEURL }}/{{ article.url}}">lire la suite</a>
- </div>
- <div class="clear" />
- </section>
- </article>
-
- {% 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 %}
- <h1 class="page_title">Archives</h1>
- <table id="archives">
- <tbody>
- {% for article in dates %}
- <tr>
- <td>{{ article.date.date() }}</td>
- <td><a href='{{ article.url }}'>{{ article.title }}</a></td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
-{% 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 %}
- <article class="post">
- <h1 class="page_title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
- {%include 'meta.html'%}
- {% import 'translations.html' as translations with context %}
- {{ translations.translations_for(article) }}
-
-
- <section class="post_content">
- {{ article.content }}
- </section>
-
- </article>
-
- {% if article.related_posts and article.related_posts %}
- <div class="clear" />
-
- <h2>&Agrave; lire aussi&nbsp;:</h2>
-
- <ul>
- {% for related_post in article.related_posts %}
- <li><a href="{{ SITEURL }}/{{ related_post.url }}">{{ related_post.title }}</a></li>
- {% endfor %}
- </ul>
- {% endif %}
-
-
- {% if DISQUS_SITENAME %}
-
- <div class="comments">
- <h2>Commentaires&nbsp;:</h2>
- <div id="disqus_thread">
- {% if article.disqus_comments %}
- <ul class="post-list">
- {% for comment in article.disqus_comments recursive %}
- <li class="post">
- <div class="post-content">
- <div class="avatar hovercard">
- <img alt="Avatar" src="{{ comment.author.avatar.small.cache }}">
- </div>
- <div class="post-body">
- <header>
- <span class="publisher-anchor-color">{{ comment.author.name }}</span>
- <span class="time-ago" title="{{ comment.createdAt }}">{{ comment.createdAt }}</span>
- </header>
- <div class="post-message-container">
- <div class="post-message publisher-anchor-color ">
- {{ comment.message }}
- </div>
- </div>
- </div>
- </div>
- {% if comment.children %}
- <ul class="children">
- {{ loop(comment.children) }}
- </ul>
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- {% else %}
- Aucun commentaire pour l'instant.
- {% endif %}
- </div>
- </div>
- <div id="disqus_comments">
- <button onclick="load_disqus()">recharger</button>
- </div>
- <script type="text/javascript">
- var disqus_identifier = "{{ article.url }}";
- function load_disqus() {
- var dsq = document.createElement('script');
- dsq.type = 'text/javascript';
- dsq.async = true;
- dsq.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- var load_button = document.getElementById('disqus_comments');
- load_button.parentNode.removeChild(load_button);
- };
- </script>
- {% 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
--- a/theme/templates/authors.html
+++ /dev/null
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 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html>
-<html lang="{{ DEFAULT_LANG }}" xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="/theme/css/{{ CSS_FILE }}" type="text/css" />
- <link href="{{ SITEURL }}/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} - Flux ATOM" />
- {% if tag %}
- {% if TAG_FEED_ATOM %}
- <link href="{{ SITEURL }}/{{ TAG_FEED_ATOM.format(slug = tag|e|lower) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} » {{ tag|e }} - Flux ATOM" />
- {% endif %}
- {% if TAG_FEED_RSS %}
- <link href="{{ SITEURL }}/{{ TAG_FEED_RSS.format(slug = tag|e|lower) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} » {{ tag }} - Flux RSS" />
- {% endif %}
- {% endif %}
- {% if category %}
- {% if CATEGORY_FEED_ATOM %}
- <link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM.format(slug = category|lower) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} » {{ category|e }} - Flux ATOM" />
- {% endif %}
- {% if CATEGORY_FEED_RSS %}
- <link href="{{ SITEURL }}/{{ CATEGORY_FEED_RSS.format(slug = category|lower) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} » {{ category|e }} - Flux RSS" />
- {% endif %}
- {% endif %}
-
- {% if GOOGLE_ANALYTICS %}
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
- pageTracker._trackPageview();
- } catch(err) {}</script>
- {% endif %}
-</head>
-<body>
-<div id="page">
-
-{% include 'header.html' %}
-{% include 'menu.html' %}
-
- <section id="content">
-{% block content %}
-{% endblock %}
- </section> <!-- /#content -->
-
- <footer id="footer">
- <p>Propulsé par <a href="http://getpelican.com/">Pelican</a>.</p>
- </footer>
-</div> <!-- /#page -->
-</body>
-</html>
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 %}
-<h2 class="page_title">Liste des catégories</h2>
-<ul>
-{% for category, articles in categories %}
- <li>
- <a href="{{ category.url }}">{{ category }}</a> ({{ articles|count }})
- {% if CATEGORY_FEED_RSS %}
- <a href="{{ SITEURL }}/{{ CATEGORY_FEED_RSS.format(slug=category) }}" ><img src="theme/images/rss.png" /></a>
- {% endif %}
- </li>
-{% endfor %}
-</ul>
-{% 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 %}
- <h1 class="page_title">Articles dans la catégorie «&thinsp;{{ category }}&thinsp;»</h1>
- {% 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 @@
-<header id="header">
- <h1><a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a></h1>
- <img src="/theme/images/header.jpg" width="100%"/>
-</header>
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 %}
- <a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" ><img src="../theme/images/rss.png" /></a>
- {% endif %}
-
- {% if FEED_ATOM %}
- <a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" ><img src="../theme/images/atom.png" /></a>
- {% 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 %}
- <li class='has-sub'><span><a href="{{ SITEURL }}/{{link}}.html">{{name}}</a></span>
- <ul>
- {% for tag, articles in elements %}
- <li><a href="{{SITEURL}}/{{tag.url}}"><span>{{ tag }}</span></a></li>
- {% endfor %}
- </ul>
- </li>
- {% endif %}
-{%- endmacro %}
-
-<div id="cssmenu">
-<ul>
- <li class='has-sub'><span><a href="{{ SITEURL }}/">Articles</a></span>
- <ul>
- {% for article in articles %}{% if loop.index <= FEED_MAX_ITEMS %}
- <li><a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a></li>
- {% endif %}{% endfor %}
- <hr/>
- <li><a href="{{ SITEURL }}/archives.html">Archives</a>
- </ul>
- </li>
-
- {{ submenu(categories, 'categories', 'Catégories') }}
-
- {% if pages %}
- <li class='has-sub'><span>À lire</span>
- <ul>
- {% for page in pages %}
- <li><a href="{{SITEURL}}/{{page.url}}"><span>{{ page.title }}</span></a></li>
- {% endfor %}
- {% if pages and LINKS %}
- <hr/>
- {% endif %}
- {% for link, target in LINKS %}
- <li><a href="{{target}}"><span>{{ link }}</span></a></li>
- {% endfor %}
- </ul>
- </li>
- {% endif %}
-
-
-{#
- {% if FEED or FEED_RSS %}
- <li class='has-sub'><a href="{{ SITEURL }}/#">S'abonner</a>
- <ul>
- {% if FEED %}
- <li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">Flux ATOM</a></li>
- {% endif %}
- {% if FEED_RSS %}
- <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">Flux RSS</a></li>
- {% endif %}
-
- {% if categories %}
- {% for category, articles in categories %}
- <li><a href="{{SITEURL}}/{{CATEGORY_FEED_ATOM % (category)}}"><span>{{ category }}</span></a></li>{% endfor %}
- {% endif %}
- </ul>
- </li>
- {% endif %}
-#}
-
-</ul>
-</div>
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 @@
-<details class="meta">
- Publié le <time datetime="{{ article.date.isoformat() }}" pubdate="pubdate">{{ article.locale_date }}</time>
-{# {% if article.author %} par {{ article.author }}{% endif %} #}
- dans
- «&thinsp;<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>&thinsp;».
- {% if article.tags %}
- Mots-clefs&thinsp;:
- {% for tag in article.tags %}{%if loop.index > 1%},{%endif%}
- <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}
- </p>
- {% endif %}
-</details>
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 %}
- <nav class="pagination">
- {% if articles_page.has_previous() %}
- {% if articles_page.previous_page_number() == 1 %}
- <a href="{{ SITEURL }}/{{ page_name }}.html">&#60;&#60;</a>
- {% else %}
- <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">&#60;&#60;</a>
- {% endif %}
- {% endif %}
- Page {{ articles_page.number }} sur {{ articles_paginator.num_pages }}
- {% if articles_page.has_next() %}
- <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">&#62;&#62;</a>
- {% endif %}
- </nav>
-{% 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 %}
- <h1 class="page_title"><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></h1>
- {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
- the pdf</a>{% endif %}
-
- <section class="page_content">
- {{ page.content }}
- </section>
-
-{% 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 %}
- <h1 class="page_title">Articles avec le mot-clef «&thinsp;{{ tag }}&thinsp;»</h1>
- {% if articles %}
- {% import 'abstract.html' as abstract with context %}
- {{ abstract.abstract("h2") }}
- {% endif %}
-
- {% if TAG_FEED_RSS %}
- <a href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS.format(slug = page_name|replace("tag/", "")|e|lower)}}" ><img src="../theme/images/rss.png" /></a>
- {% endif %}
-
- {% if TAG_FEED_ATOM %}
- <a href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM.format(slug = page_name|replace("tag/", "")|e|lower)}}" ><img src="../theme/images/atom.png" /></a>
- {% 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 %}
-<h2 class="page_title">Liste des mots-clefs</h2>
-<ul id="tag_list">
-{% for tag, articles in tags %}
-<li><a href="{{SITEURL}}/{{tag.url}}">{{ tag }}</a> ({{ articles|count }})
-</li>
-{% endfor %}
-</ul>
-{% 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 %}
-<details class="meta">
-Traductions :
-{% for translation in article.translations %}
-<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
-{% endfor %}
-</details>
-{% endif %}
-{% endmacro %}