From e4c3d6fc542026ba68fa6f7e9cf4d84ab6e1801b Mon Sep 17 00:00:00 2001 From: asselinpaul Date: Tue, 12 Jun 2012 18:23:40 +0200 Subject: added subtle --- subtle/templates/analytics.html | 11 ++++++ subtle/templates/archives.html | 13 +++++++ subtle/templates/article.html | 34 +++++++++++++++++ subtle/templates/article_infos.html | 14 +++++++ subtle/templates/author.html | 2 + subtle/templates/authors.html | 0 subtle/templates/base.html | 74 +++++++++++++++++++++++++++++++++++++ subtle/templates/categories.html | 8 ++++ subtle/templates/category.html | 2 + subtle/templates/comments.html | 1 + subtle/templates/disqus_script.html | 11 ++++++ subtle/templates/github.html | 9 +++++ subtle/templates/gosquared.html | 14 +++++++ subtle/templates/index.html | 60 ++++++++++++++++++++++++++++++ subtle/templates/page.html | 10 +++++ subtle/templates/pagination.html | 15 ++++++++ subtle/templates/piwik.html | 16 ++++++++ subtle/templates/tag.html | 2 + subtle/templates/taglist.html | 2 + subtle/templates/tags.html | 0 subtle/templates/translations.html | 6 +++ subtle/templates/twitter.html | 3 ++ 22 files changed, 307 insertions(+) create mode 100755 subtle/templates/analytics.html create mode 100755 subtle/templates/archives.html create mode 100755 subtle/templates/article.html create mode 100755 subtle/templates/article_infos.html create mode 100755 subtle/templates/author.html create mode 100755 subtle/templates/authors.html create mode 100755 subtle/templates/base.html create mode 100755 subtle/templates/categories.html create mode 100755 subtle/templates/category.html create mode 100755 subtle/templates/comments.html create mode 100755 subtle/templates/disqus_script.html create mode 100755 subtle/templates/github.html create mode 100644 subtle/templates/gosquared.html create mode 100755 subtle/templates/index.html create mode 100755 subtle/templates/page.html create mode 100755 subtle/templates/pagination.html create mode 100755 subtle/templates/piwik.html create mode 100755 subtle/templates/tag.html create mode 100755 subtle/templates/taglist.html create mode 100755 subtle/templates/tags.html create mode 100755 subtle/templates/translations.html create mode 100755 subtle/templates/twitter.html (limited to 'subtle/templates') diff --git a/subtle/templates/analytics.html b/subtle/templates/analytics.html new file mode 100755 index 0000000..ba174fc --- /dev/null +++ b/subtle/templates/analytics.html @@ -0,0 +1,11 @@ +{% if GOOGLE_ANALYTICS %} + + +{% endif %} \ No newline at end of file diff --git a/subtle/templates/archives.html b/subtle/templates/archives.html new file mode 100755 index 0000000..f678494 --- /dev/null +++ b/subtle/templates/archives.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block content %} +
+

Archives for {{ SITENAME }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+
+{% endblock %} diff --git a/subtle/templates/article.html b/subtle/templates/article.html new file mode 100755 index 0000000..fc7e589 --- /dev/null +++ b/subtle/templates/article.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block title %}{{ article.title|striptags }}{% endblock %} +{% block content %} +
+
+
+

+ {{ article.title}}

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

Comments !

+
+ +
+ {% endif %} + +
+
+{% endblock %} diff --git a/subtle/templates/article_infos.html b/subtle/templates/article_infos.html new file mode 100755 index 0000000..a1993a0 --- /dev/null +++ b/subtle/templates/article_infos.html @@ -0,0 +1,14 @@ + diff --git a/subtle/templates/author.html b/subtle/templates/author.html new file mode 100755 index 0000000..0b37290 --- /dev/null +++ b/subtle/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/subtle/templates/authors.html b/subtle/templates/authors.html new file mode 100755 index 0000000..e69de29 diff --git a/subtle/templates/base.html b/subtle/templates/base.html new file mode 100755 index 0000000..64584c8 --- /dev/null +++ b/subtle/templates/base.html @@ -0,0 +1,74 @@ + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + + + + + + + + + + +{% include 'github.html' %} + + {% block content %} + {% endblock %} +
+ {% if LINKS %} +
+

blogroll

+
    + {% for name, link in LINKS %} +
  • {{ name }}
  • + {% endfor %} +
+
+ {% endif %} + {% if SOCIAL %} + + {% endif %} +
+ + + +{% include 'analytics.html' %} +{% include 'piwik.html' %} +{% include 'gosquared.html' %} +{% include 'disqus_script.html' %} + + diff --git a/subtle/templates/categories.html b/subtle/templates/categories.html new file mode 100755 index 0000000..e29be0c --- /dev/null +++ b/subtle/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} diff --git a/subtle/templates/category.html b/subtle/templates/category.html new file mode 100755 index 0000000..56f8e93 --- /dev/null +++ b/subtle/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/subtle/templates/comments.html b/subtle/templates/comments.html new file mode 100755 index 0000000..bb033c0 --- /dev/null +++ b/subtle/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}

There are comments.

{% endif %} diff --git a/subtle/templates/disqus_script.html b/subtle/templates/disqus_script.html new file mode 100755 index 0000000..c4f442c --- /dev/null +++ b/subtle/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/subtle/templates/github.html b/subtle/templates/github.html new file mode 100755 index 0000000..75592ac --- /dev/null +++ b/subtle/templates/github.html @@ -0,0 +1,9 @@ +{% if GITHUB_URL %} + +{% if GITHUB_POSITION != "left" %} +Fork me on GitHub +{% else %} +Fork me on GitHub +{% endif %} + +{% endif %} diff --git a/subtle/templates/gosquared.html b/subtle/templates/gosquared.html new file mode 100644 index 0000000..f47efcf --- /dev/null +++ b/subtle/templates/gosquared.html @@ -0,0 +1,14 @@ +{% if GOSQUARED_SITENAME %} + +{% endif %} diff --git a/subtle/templates/index.html b/subtle/templates/index.html new file mode 100755 index 0000000..69dc462 --- /dev/null +++ b/subtle/templates/index.html @@ -0,0 +1,60 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in articles_page.object_list %} + + {# First item #} + {% if loop.first and not articles_page.has_previous() %} + + {% if loop.length > 1 %} +
+

Other articles

+
+
    + {% endif %} + {# other items #} + {% else %} + {% if loop.first and articles_page.has_previous %} +
    +
      + {% endif %} +
    1. +
      +

      {{ article.title }}

      +
      + +
      + {% include 'article_infos.html' %} + {{ article.summary }} + read more + {% include 'comments.html' %} +
      +
    2. + {% endif %} + {% if loop.last and (articles_page.has_previous() + or not articles_page.has_previous() and loop.length > 1) %} + {% include 'pagination.html' %} + {% endif %} + {% if loop.last %} +
    +
    + {% endif %} + {% endfor %} +{% else %} +
    +

    Pages

    + {% for page in PAGES %} +
  1. {{ page.title }}
  2. + {% endfor %} +
    +{% endif %} +{% endblock content %} diff --git a/subtle/templates/page.html b/subtle/templates/page.html new file mode 100755 index 0000000..9635fb8 --- /dev/null +++ b/subtle/templates/page.html @@ -0,0 +1,10 @@ +{% 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/subtle/templates/pagination.html b/subtle/templates/pagination.html new file mode 100755 index 0000000..83c587a --- /dev/null +++ b/subtle/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +

    + {% if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + « + {% else %} + « + {% endif %} + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + » + {% endif %} +

    +{% endif %} diff --git a/subtle/templates/piwik.html b/subtle/templates/piwik.html new file mode 100755 index 0000000..ff459af --- /dev/null +++ b/subtle/templates/piwik.html @@ -0,0 +1,16 @@ +{% if PIWIK_URL and PIWIK_SITE_ID %} + +{% endif %} \ No newline at end of file diff --git a/subtle/templates/tag.html b/subtle/templates/tag.html new file mode 100755 index 0000000..68cdcba --- /dev/null +++ b/subtle/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/subtle/templates/taglist.html b/subtle/templates/taglist.html new file mode 100755 index 0000000..c792fd7 --- /dev/null +++ b/subtle/templates/taglist.html @@ -0,0 +1,2 @@ +{% if article.tags %}

    tags: {% for tag in article.tags %}{{ tag }}{% endfor %}

    {% endif %} +{% if PDF_PROCESSOR %}

    get the pdf

    {% endif %} diff --git a/subtle/templates/tags.html b/subtle/templates/tags.html new file mode 100755 index 0000000..e69de29 diff --git a/subtle/templates/translations.html b/subtle/templates/translations.html new file mode 100755 index 0000000..0079883 --- /dev/null +++ b/subtle/templates/translations.html @@ -0,0 +1,6 @@ +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} diff --git a/subtle/templates/twitter.html b/subtle/templates/twitter.html new file mode 100755 index 0000000..c6b159f --- /dev/null +++ b/subtle/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} + +{% endif %} \ No newline at end of file -- cgit