From 5c4e85fe93ec3a713cf173db34e422072254d1c7 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Mon, 21 Jan 2013 12:10:58 +0100 Subject: Configuration update. Custom theme --- theme/templates/archives.html | 11 +++++++++ theme/templates/article.html | 20 ++++++++++++++++ theme/templates/author.html | 7 ++++++ theme/templates/base.html | 50 +++++++++++++++++++++++++++++++++++++++ theme/templates/categories.html | 8 +++++++ theme/templates/category.html | 5 ++++ theme/templates/gosquared.html | 14 +++++++++++ theme/templates/index.html | 16 +++++++++++++ theme/templates/page.html | 9 +++++++ theme/templates/pagination.html | 15 ++++++++++++ theme/templates/tag.html | 0 theme/templates/tags.html | 0 theme/templates/translations.html | 9 +++++++ 13 files changed, 164 insertions(+) create mode 100644 theme/templates/archives.html create mode 100644 theme/templates/article.html create mode 100644 theme/templates/author.html create mode 100644 theme/templates/base.html create mode 100644 theme/templates/categories.html create mode 100644 theme/templates/category.html create mode 100644 theme/templates/gosquared.html create mode 100644 theme/templates/index.html create mode 100644 theme/templates/page.html create mode 100644 theme/templates/pagination.html create mode 100644 theme/templates/tag.html create mode 100644 theme/templates/tags.html create mode 100644 theme/templates/translations.html (limited to 'theme/templates') diff --git a/theme/templates/archives.html b/theme/templates/archives.html new file mode 100644 index 0000000..050f268 --- /dev/null +++ b/theme/templates/archives.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block content %} +

Archives for {{ SITENAME }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+{% endblock %} diff --git a/theme/templates/article.html b/theme/templates/article.html new file mode 100644 index 0000000..637b3a1 --- /dev/null +++ b/theme/templates/article.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% block content %} +
+
+

+ {{ article.title }}

+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} +
+
+ Posted on + {{ article.locale_date }} + +
+
+ {{ article.content }} +
+
+{% endblock %} diff --git a/theme/templates/author.html b/theme/templates/author.html new file mode 100644 index 0000000..e9f7870 --- /dev/null +++ b/theme/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} +{% block content_title %} +

Articles by {{ author }}

+{% endblock %} + diff --git a/theme/templates/base.html b/theme/templates/base.html new file mode 100644 index 0000000..ca6f2e3 --- /dev/null +++ b/theme/templates/base.html @@ -0,0 +1,50 @@ + + + + {% block head %} + {% block title %}{{ SITENAME }}{% endblock title %} + + + + + + {% endblock head %} + + + +
+ + + + + +
+ + {% block content %} + {% endblock %} + +
+ + + +
+ + diff --git a/theme/templates/categories.html b/theme/templates/categories.html new file mode 100644 index 0000000..e29be0c --- /dev/null +++ b/theme/templates/categories.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} diff --git a/theme/templates/category.html b/theme/templates/category.html new file mode 100644 index 0000000..4e6fd24 --- /dev/null +++ b/theme/templates/category.html @@ -0,0 +1,5 @@ +{% extends "index.html" %} +{% block content_title %} +

Articles in the {{ category }} category

+{% endblock %} + diff --git a/theme/templates/gosquared.html b/theme/templates/gosquared.html new file mode 100644 index 0000000..f47efcf --- /dev/null +++ b/theme/templates/gosquared.html @@ -0,0 +1,14 @@ +{% if GOSQUARED_SITENAME %} + +{% endif %} diff --git a/theme/templates/index.html b/theme/templates/index.html new file mode 100644 index 0000000..47bf7be --- /dev/null +++ b/theme/templates/index.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% block content %} +
+

Blog posts

+ + +{% include 'pagination.html' %} +
+{% endblock content %} diff --git a/theme/templates/page.html b/theme/templates/page.html new file mode 100644 index 0000000..3a0dc4a --- /dev/null +++ b/theme/templates/page.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block title %}{{ page.title }}{%endblock%} +{% block content %} +

{{ page.title }}

+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + + {{ page.content }} +{% endblock %} diff --git a/theme/templates/pagination.html b/theme/templates/pagination.html new file mode 100644 index 0000000..83c587a --- /dev/null +++ b/theme/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/theme/templates/tag.html b/theme/templates/tag.html new file mode 100644 index 0000000..e69de29 diff --git a/theme/templates/tags.html b/theme/templates/tags.html new file mode 100644 index 0000000..e69de29 diff --git a/theme/templates/translations.html b/theme/templates/translations.html new file mode 100644 index 0000000..db8c372 --- /dev/null +++ b/theme/templates/translations.html @@ -0,0 +1,9 @@ +{% macro translations_for(article) %} +{% if article.translations %} +Translations: +{% for translation in article.translations %} +{{ translation.lang }} +{% endfor %} +{% endif %} +{% endmacro %} + -- cgit v1.2.3-70-g09d2