From fc476ec89f95a8011ae132dfda05d05ff4642d7a Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Fri, 6 Apr 2018 12:01:09 +0200 Subject: Template V1 --- themes/elenq/templates/archives.html | 11 ++++ themes/elenq/templates/article.html | 44 ++++++++++++++++ themes/elenq/templates/author.html | 7 +++ themes/elenq/templates/authors.html | 13 +++++ themes/elenq/templates/base.html | 81 +++++++++++++++++++++++++++++ themes/elenq/templates/categories.html | 8 +++ themes/elenq/templates/category.html | 5 ++ themes/elenq/templates/index.html | 28 ++++++++++ themes/elenq/templates/page.html | 15 ++++++ themes/elenq/templates/pagination.html | 11 ++++ themes/elenq/templates/period_archives.html | 11 ++++ themes/elenq/templates/tag.html | 0 themes/elenq/templates/tags.html | 10 ++++ themes/elenq/templates/translations.html | 9 ++++ 14 files changed, 253 insertions(+) create mode 100644 themes/elenq/templates/archives.html create mode 100644 themes/elenq/templates/article.html create mode 100644 themes/elenq/templates/author.html create mode 100644 themes/elenq/templates/authors.html create mode 100644 themes/elenq/templates/base.html create mode 100644 themes/elenq/templates/categories.html create mode 100644 themes/elenq/templates/category.html create mode 100644 themes/elenq/templates/index.html create mode 100644 themes/elenq/templates/page.html create mode 100644 themes/elenq/templates/pagination.html create mode 100644 themes/elenq/templates/period_archives.html create mode 100644 themes/elenq/templates/tag.html create mode 100644 themes/elenq/templates/tags.html create mode 100644 themes/elenq/templates/translations.html (limited to 'themes/elenq/templates') diff --git a/themes/elenq/templates/archives.html b/themes/elenq/templates/archives.html new file mode 100644 index 0000000..050f268 --- /dev/null +++ b/themes/elenq/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/themes/elenq/templates/article.html b/themes/elenq/templates/article.html new file mode 100644 index 0000000..a2b5635 --- /dev/null +++ b/themes/elenq/templates/article.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} +{% block head %} + {{ super() }} + {% if article.description %} + + {% endif %} + + {% for tag in article.tags %} + + {% endfor %} + +{% endblock %} + +{% block content %} +
+
+

+ {{ article.title }}

+ {% import 'translations.html' as translations with context %} + {{ translations.translations_for(article) }} +
+
+ + {% if article.modified %} + + {% endif %} + {% if article.authors %} +
+ By {% for author in article.authors %} + {{ author }} + {% endfor %} +
+ {% endif %} +
+
+ {{ article.content }} +
+
+{% endblock %} diff --git a/themes/elenq/templates/author.html b/themes/elenq/templates/author.html new file mode 100644 index 0000000..e9f7870 --- /dev/null +++ b/themes/elenq/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/themes/elenq/templates/authors.html b/themes/elenq/templates/authors.html new file mode 100644 index 0000000..4914904 --- /dev/null +++ b/themes/elenq/templates/authors.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Authors{% endblock %} + +{% block content %} +

Authors on {{ SITENAME }}

+ + +{% endblock %} diff --git a/themes/elenq/templates/base.html b/themes/elenq/templates/base.html new file mode 100644 index 0000000..d591ee5 --- /dev/null +++ b/themes/elenq/templates/base.html @@ -0,0 +1,81 @@ + + + + {% block head %} + {% block title %}{{ SITENAME }}{% endblock title %} + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + {% if FEED_ATOM %} + + {% endif %} + {% if FEED_RSS %} + + {% endif %} + {% if CATEGORY_FEED_ATOM and category %} + + {% endif %} + {% if CATEGORY_FEED_RSS and category %} + + {% endif %} + {% if TAG_FEED_ATOM and tag %} + + {% endif %} + {% if TAG_FEED_RSS and tag %} + + {% endif %} + {% endblock head %} + + + + + + + + +
+
+ +
+
+
+

{{ SITENAME }}{% if SITESUBTITLE %}:
{{ SITESUBTITLE }}{% endif %}

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

Articles in the {{ category }} category

+{% endblock %} + diff --git a/themes/elenq/templates/index.html b/themes/elenq/templates/index.html new file mode 100644 index 0000000..169e661 --- /dev/null +++ b/themes/elenq/templates/index.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% block content %} +
+{% block content_title %} +

Home

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

    {{ article.title }}

    +
    + +
    By + {% for author in article.authors %} + {{ author }} + {% endfor %} +
    +
    +
    {{ article.summary }}
    +
  2. +{% endfor %} +
+{% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} +{% endif %} +
+{% endblock content %} diff --git a/themes/elenq/templates/page.html b/themes/elenq/templates/page.html new file mode 100644 index 0000000..5ceb779 --- /dev/null +++ b/themes/elenq/templates/page.html @@ -0,0 +1,15 @@ +{% 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 }} + + {% if page.modified %} +

+ Last updated: {{ page.locale_modified }} +

+ {% endif %} +{% endblock %} diff --git a/themes/elenq/templates/pagination.html b/themes/elenq/templates/pagination.html new file mode 100644 index 0000000..4219a5c --- /dev/null +++ b/themes/elenq/templates/pagination.html @@ -0,0 +1,11 @@ +{% if DEFAULT_PAGINATION %} +

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

+{% endif %} diff --git a/themes/elenq/templates/period_archives.html b/themes/elenq/templates/period_archives.html new file mode 100644 index 0000000..d930dbb --- /dev/null +++ b/themes/elenq/templates/period_archives.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block content %} +

Archives for {{ period | reverse | join(' ') }}

+ +
+{% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+{% endfor %} +
+{% endblock %} diff --git a/themes/elenq/templates/tag.html b/themes/elenq/templates/tag.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/elenq/templates/tags.html b/themes/elenq/templates/tags.html new file mode 100644 index 0000000..b5d1482 --- /dev/null +++ b/themes/elenq/templates/tags.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Tags{% endblock %} + +{% block content %} +

Tags for {{ SITENAME }}

+ {%- for tag, articles in tags|sort %} +
  • {{ tag }} ({{ articles|count }})
  • + {% endfor %} +{% endblock %} diff --git a/themes/elenq/templates/translations.html b/themes/elenq/templates/translations.html new file mode 100644 index 0000000..db8c372 --- /dev/null +++ b/themes/elenq/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