From 0891e0146f0dcf9e6db7ccce4376114c339fa5df Mon Sep 17 00:00:00 2001 From: Audric Schiltknecht Date: Fri, 9 May 2014 12:13:44 +0200 Subject: Import du thème 'dev-random2' pour modifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/dev-urandom/templates/archives.html | 29 ++++++++++ themes/dev-urandom/templates/article.html | 53 ++++++++++++++++++ themes/dev-urandom/templates/author.html | 5 ++ themes/dev-urandom/templates/base.html | 62 ++++++++++++++++++++++ themes/dev-urandom/templates/categories.html | 14 +++++ themes/dev-urandom/templates/category.html | 5 ++ .../templates/includes/article_meta.html | 17 ++++++ themes/dev-urandom/templates/includes/sidebar.html | 55 +++++++++++++++++++ themes/dev-urandom/templates/index.html | 59 ++++++++++++++++++++ themes/dev-urandom/templates/page.html | 8 +++ themes/dev-urandom/templates/tag.html | 6 +++ themes/dev-urandom/templates/tags.html | 31 +++++++++++ 12 files changed, 344 insertions(+) create mode 100644 themes/dev-urandom/templates/archives.html create mode 100644 themes/dev-urandom/templates/article.html create mode 100644 themes/dev-urandom/templates/author.html create mode 100644 themes/dev-urandom/templates/base.html create mode 100644 themes/dev-urandom/templates/categories.html create mode 100644 themes/dev-urandom/templates/category.html create mode 100644 themes/dev-urandom/templates/includes/article_meta.html create mode 100644 themes/dev-urandom/templates/includes/sidebar.html create mode 100644 themes/dev-urandom/templates/index.html create mode 100644 themes/dev-urandom/templates/page.html create mode 100644 themes/dev-urandom/templates/tag.html create mode 100644 themes/dev-urandom/templates/tags.html (limited to 'themes/dev-urandom/templates') diff --git a/themes/dev-urandom/templates/archives.html b/themes/dev-urandom/templates/archives.html new file mode 100644 index 0000000..47bf2ab --- /dev/null +++ b/themes/dev-urandom/templates/archives.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} + +{% block content_title %}{{ SITENAME }} — Archives{% endblock %} + +{%- block content %} +

Archives

+
+ {% for article in articles %} + {% if loop.first or article.date.strftime('%Y %m') != articles[loop.index0-1].date.strftime('%Y %m') %} +
+

{{ article.date.strftime('%B %Y') }}

+
    + {% endif %} + +
  • + + {{ article.title }} + +
  • + + {% if loop.last or article.date.strftime('%Y %m') != articles[loop.index0+1].date.strftime('%Y %m') %} +
+
+ {% endif %} + {% endfor %} +
+{% endblock content -%} diff --git a/themes/dev-urandom/templates/article.html b/themes/dev-urandom/templates/article.html new file mode 100644 index 0000000..9d24a37 --- /dev/null +++ b/themes/dev-urandom/templates/article.html @@ -0,0 +1,53 @@ +{%- if article.lang %}{% set DEFAULT_LANG = article.lang %}{% endif -%} +{% extends "base.html" %} + +{% block headers %} + {{ super() }} + + + +{% endblock %} + +{% block title %}{{ article.title }} — {{ super() }}{% endblock %} + +{%- block content %} +
+

+ + {{ article.title }} + +

+
+ {% include "includes/article_meta.html" %} +
+
+
+ {{ article.content}} +
+ + {% if DISQUS_SITENAME %} +
+
+ + + blog comments powered by Disqus + {% endif %} +{% endblock content -%} diff --git a/themes/dev-urandom/templates/author.html b/themes/dev-urandom/templates/author.html new file mode 100644 index 0000000..e323690 --- /dev/null +++ b/themes/dev-urandom/templates/author.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} + +{% block title %}{{ super() }} — Articles de {{ author }}{% endblock %} + +{% block index_title %}Articles de {{ author }} :{% endblock %} diff --git a/themes/dev-urandom/templates/base.html b/themes/dev-urandom/templates/base.html new file mode 100644 index 0000000..3ee32a5 --- /dev/null +++ b/themes/dev-urandom/templates/base.html @@ -0,0 +1,62 @@ + + + + {% block headers %} + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + + + + {% if FEED_RSS %} + + {% endif %} + {% endblock headers %} + + +
+ + +
+ <{%- if article %}article class="post" {% else %}section {% endif -%}id="page-main" role="main"> +{% block content %} +{% endblock content %} + + + +
+ + +
+ {% if GOOGLE_ANALYTICS %} + + {% endif %} + + diff --git a/themes/dev-urandom/templates/categories.html b/themes/dev-urandom/templates/categories.html new file mode 100644 index 0000000..0a5b0f4 --- /dev/null +++ b/themes/dev-urandom/templates/categories.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}{{ super() }} — Catégories{% endblock title %} + +{%- block content %} +
+

Catégories

+ +
+{% endblock content -%} diff --git a/themes/dev-urandom/templates/category.html b/themes/dev-urandom/templates/category.html new file mode 100644 index 0000000..0a5dade --- /dev/null +++ b/themes/dev-urandom/templates/category.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} + +{% block title %}{{ super() }} — Articles dans la catégorie «{{ category }}»{% endblock %} + +{% block index_title %}Articles dans la catégorie «{{ category }}» :{% endblock %} diff --git a/themes/dev-urandom/templates/includes/article_meta.html b/themes/dev-urandom/templates/includes/article_meta.html new file mode 100644 index 0000000..38b337b --- /dev/null +++ b/themes/dev-urandom/templates/includes/article_meta.html @@ -0,0 +1,17 @@ + + Le + dans «{{ article.category }}» + par {{ article.author }} + {%- if article.tags %} +
Mots-clés: + {%- for tag in article.tags %} + {% if not loop.last %}, {% endif %} + {% endfor -%} + {% endif -%} + {%- if article.translations %} +
Langues: + [{{ article.lang or DEFAULT_LANG }}] + {%- for translation in article.translations %} + {{ translation.lang }} + {% endfor -%} + {% endif -%} diff --git a/themes/dev-urandom/templates/includes/sidebar.html b/themes/dev-urandom/templates/includes/sidebar.html new file mode 100644 index 0000000..0d5d5ef --- /dev/null +++ b/themes/dev-urandom/templates/includes/sidebar.html @@ -0,0 +1,55 @@ + + + + + {% if categories %} + + {% endif %} + + + diff --git a/themes/dev-urandom/templates/index.html b/themes/dev-urandom/templates/index.html new file mode 100644 index 0000000..0ba7692 --- /dev/null +++ b/themes/dev-urandom/templates/index.html @@ -0,0 +1,59 @@ +{% extends "base.html" %} + +{%- block content %} +

{% block index_title %}Tous les articles{% endblock index_title %}

+ + {% for article in articles_page.object_list %} +
+
+

+ + {{ article.title }} + +

+
+ {% include "includes/article_meta.html" %} +
+
+
+ {{ article.summary }} +
+ +
+ {% set article = False %} + {% endfor %} + + {%- if articles_page %} + + {%- endif%} +{% endblock content -%} diff --git a/themes/dev-urandom/templates/page.html b/themes/dev-urandom/templates/page.html new file mode 100644 index 0000000..b52c807 --- /dev/null +++ b/themes/dev-urandom/templates/page.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block title %}{{ super() }} — {{ page.url }}{% endblock title %} + +{%- block content %} +

{{ page.title }}

+ {{ page.content }} +{% endblock content -%} diff --git a/themes/dev-urandom/templates/tag.html b/themes/dev-urandom/templates/tag.html new file mode 100644 index 0000000..ca4fc94 --- /dev/null +++ b/themes/dev-urandom/templates/tag.html @@ -0,0 +1,6 @@ +{% extends "index.html" %} + +{% block title %}{{ super() }} — Articles avec le mot clé « {{ tag }} »{% endblock %} + +{% block index_title %}Articles avec le mot clé « {{ tag }} » :{% endblock %} + diff --git a/themes/dev-urandom/templates/tags.html b/themes/dev-urandom/templates/tags.html new file mode 100644 index 0000000..e967527 --- /dev/null +++ b/themes/dev-urandom/templates/tags.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} + +{% block headers %} +{{ super() }} + + +{% endblock headers %} + +{% block title %}{{ super() }} — Mots-clés{% endblock title %} + +{%- block content %} +

Mots-clés

+ +{% endblock content -%} -- cgit v1.2.3-70-g09d2