From 66a5a0cdccd464930a232c87f91e1b0805f255a5 Mon Sep 17 00:00:00 2001 From: Chimrod Date: Tue, 16 Apr 2013 21:27:30 +0200 Subject: initial commit --- theme/templates/archives.html | 17 +++++++++++++ theme/templates/article.html | 40 ++++++++++++++++++++++++++++++ theme/templates/author.html | 2 ++ theme/templates/authors.html | 0 theme/templates/base.html | 55 +++++++++++++++++++++++++++++++++++++++++ theme/templates/categories.html | 17 +++++++++++++ theme/templates/category.html | 31 +++++++++++++++++++++++ theme/templates/header.html | 3 +++ theme/templates/index.html | 31 +++++++++++++++++++++++ theme/templates/menu.html | 53 +++++++++++++++++++++++++++++++++++++++ theme/templates/meta.html | 5 ++++ theme/templates/navigator.html | 15 +++++++++++ theme/templates/page.html | 12 +++++++++ theme/templates/tag.html | 31 +++++++++++++++++++++++ theme/templates/tags.html | 13 ++++++++++ 15 files changed, 325 insertions(+) create mode 100755 theme/templates/archives.html create mode 100755 theme/templates/article.html create mode 100755 theme/templates/author.html create mode 100755 theme/templates/authors.html create mode 100755 theme/templates/base.html create mode 100755 theme/templates/categories.html create mode 100755 theme/templates/category.html create mode 100755 theme/templates/header.html create mode 100755 theme/templates/index.html create mode 100755 theme/templates/menu.html create mode 100755 theme/templates/meta.html create mode 100755 theme/templates/navigator.html create mode 100755 theme/templates/page.html create mode 100755 theme/templates/tag.html create mode 100755 theme/templates/tags.html (limited to 'theme/templates') diff --git a/theme/templates/archives.html b/theme/templates/archives.html new file mode 100755 index 0000000..f3c2990 --- /dev/null +++ b/theme/templates/archives.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{%block title %}{{ SITENAME }} - Archives{%endblock%} + +{% block content %} +

Archives

+ + + {% for article in dates %} + + + + + {% endfor %} + +
{{ article.date.date() }}{{ article.title }}
+{% endblock %} diff --git a/theme/templates/article.html b/theme/templates/article.html new file mode 100755 index 0000000..f66fe72 --- /dev/null +++ b/theme/templates/article.html @@ -0,0 +1,40 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - {{ article.title }}{% endblock %} + +{% block content %} +
+

{{ article.title }}

+ {%include 'meta.html'%} + +
+ {{ article.content }} +
+ +
+ + {% if DISQUS_SITENAME %} +
+

Commentaires :

+
+ +
+ {% endif %} + +{# + {% if article.related_posts %} + + {% endif %} +#} +{% endblock %} diff --git a/theme/templates/author.html b/theme/templates/author.html new file mode 100755 index 0000000..0b37290 --- /dev/null +++ b/theme/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/theme/templates/authors.html b/theme/templates/authors.html new file mode 100755 index 0000000..e69de29 diff --git a/theme/templates/base.html b/theme/templates/base.html new file mode 100755 index 0000000..93ae32c --- /dev/null +++ b/theme/templates/base.html @@ -0,0 +1,55 @@ + + + + + {% 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 new file mode 100755 index 0000000..0cd25d4 --- /dev/null +++ b/theme/templates/categories.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Catégories{% endblock %} + +{% block content %} +

Liste des catégories

+ +{% endblock %} diff --git a/theme/templates/category.html b/theme/templates/category.html new file mode 100755 index 0000000..f476d93 --- /dev/null +++ b/theme/templates/category.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} - {{ category}}{% endblock %} + +{% block content %} +

Articles dans la catégorie «{{ category }}»

+ {% if articles %} + {% for article in (articles_page.object_list if articles_page else articles) %} +
+

{{ article.title }}

+ + +
+ {{ article.summary }} + {% if not loop.last %} +
+ {% endif %} +
+
+ {% endfor %} + {% endif %} + {% include 'navigator.html' %} + + {% if CATEGORY_FEED_RSS %} + + {% endif %} + + {% if CATEGORY_FEED_ATOM %} + + {% endif %} + +{% endblock %} diff --git a/theme/templates/header.html b/theme/templates/header.html new file mode 100755 index 0000000..066d71a --- /dev/null +++ b/theme/templates/header.html @@ -0,0 +1,3 @@ + diff --git a/theme/templates/index.html b/theme/templates/index.html new file mode 100755 index 0000000..245c708 --- /dev/null +++ b/theme/templates/index.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} - Accueil{% endblock %} + +{% block content %} + {% if articles %} + {% for article in (articles_page.object_list if articles_page else articles) %} +
+

{{ article.title }}

+ + +
+ {{ article.summary }} + {% if not loop.last %} +
+ {% endif %} +
+
+ {% endfor %} + + {% include 'navigator.html' %} + + {% if FEED_RSS %} + + {% endif %} + + {% if FEED_ATOM %} + + {% endif %} + + {% endif %} +{% endblock %} diff --git a/theme/templates/menu.html b/theme/templates/menu.html new file mode 100755 index 0000000..b8ecd50 --- /dev/null +++ b/theme/templates/menu.html @@ -0,0 +1,53 @@ +{% macro submenu(elements, link, name) -%} + {% if elements %} +
  • {{name}} + +
  • + {% endif %} +{%- endmacro %} + +
    + +
    diff --git a/theme/templates/meta.html b/theme/templates/meta.html new file mode 100755 index 0000000..db36173 --- /dev/null +++ b/theme/templates/meta.html @@ -0,0 +1,5 @@ +
    + Publié le + {% if article.author %} par {{ article.author }}{% endif %} dans «{{ article.category }}». + {% if article.tags %}Mots-clés: {% 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 new file mode 100755 index 0000000..50ca559 --- /dev/null +++ b/theme/templates/navigator.html @@ -0,0 +1,15 @@ +{% if articles_page %} + +{% endif%} diff --git a/theme/templates/page.html b/theme/templates/page.html new file mode 100755 index 0000000..4a2a9b7 --- /dev/null +++ b/theme/templates/page.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{% endblock %} +{% block content %} +

    {{ page.title }}

    + {% if PDF_PROCESSOR %}get + the pdf{% endif %} +
     
    +
    + {{ page.content }} +
    + +{% endblock %} diff --git a/theme/templates/tag.html b/theme/templates/tag.html new file mode 100755 index 0000000..49ed222 --- /dev/null +++ b/theme/templates/tag.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block title %}{{ SITENAME }} - «{{ tag }}»{% endblock %} + +{% block content %} +

    Articles avec le mot-clé «{{ tag }}»

    + {% if articles %} + {% for article in (articles_page.object_list if articles_page else articles) %} +
    +

    {{ article.title }}

    + + +
    + {{ article.summary }} + {% if not loop.last %} +
    + {% endif %} +
    +
    + {% endfor %} + {% endif %} + {% include 'navigator.html' %} + + {% if TAG_FEED_RSS %} + + {% endif %} + + {% if TAG_FEED_ATOM %} + + {% endif %} + + {% endblock %} diff --git a/theme/templates/tags.html b/theme/templates/tags.html new file mode 100755 index 0000000..681e408 --- /dev/null +++ b/theme/templates/tags.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Mots-clés{% endblock %} + +{% block content %} +

    Liste des mots-clés

    + +{% endblock %} -- cgit v1.2.3