From f08e56433fb2c92a9172787adcb33edee347bc7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Laboissi=C3=A8re?= Date: Sun, 11 Dec 2022 09:55:21 +0100 Subject: Update for new upstream version (revision 3891) --- templates/analytics.html | 26 +++++++++++++ templates/archives.html | 13 +++++++ templates/article.html | 53 +++++++++++++++++++++++++++ templates/article_infos.html | 23 ++++++++++++ templates/author.html | 2 + templates/authors.html | 16 ++++++++ templates/base.html | 83 ++++++++++++++++++++++++++++++++++++++++++ templates/categories.html | 16 ++++++++ templates/category.html | 2 + templates/comments.html | 1 + templates/disqus_script.html | 11 ++++++ templates/github.html | 9 +++++ templates/index.html | 65 +++++++++++++++++++++++++++++++++ templates/page.html | 19 ++++++++++ templates/period_archives.html | 13 +++++++ templates/tag.html | 2 + templates/taglist.html | 1 + templates/tags.html | 16 ++++++++ templates/translations.html | 16 ++++++++ templates/twitter.html | 3 ++ 20 files changed, 390 insertions(+) create mode 100644 templates/analytics.html create mode 100644 templates/archives.html create mode 100644 templates/article.html create mode 100644 templates/article_infos.html create mode 100644 templates/author.html create mode 100644 templates/authors.html create mode 100644 templates/base.html create mode 100644 templates/categories.html create mode 100644 templates/category.html create mode 100644 templates/comments.html create mode 100644 templates/disqus_script.html create mode 100644 templates/github.html create mode 100644 templates/index.html create mode 100644 templates/page.html create mode 100644 templates/period_archives.html create mode 100644 templates/tag.html create mode 100644 templates/taglist.html create mode 100644 templates/tags.html create mode 100644 templates/translations.html create mode 100644 templates/twitter.html (limited to 'templates') diff --git a/templates/analytics.html b/templates/analytics.html new file mode 100644 index 0000000..071c77f --- /dev/null +++ b/templates/analytics.html @@ -0,0 +1,26 @@ +{% if GOOGLE_ANALYTICS %} + +{% endif %} +{% if GAUGES %} + +{% endif %} diff --git a/templates/archives.html b/templates/archives.html new file mode 100644 index 0000000..f678494 --- /dev/null +++ b/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/templates/article.html b/templates/article.html new file mode 100644 index 0000000..6abcb09 --- /dev/null +++ b/templates/article.html @@ -0,0 +1,53 @@ +{% extends "base.html" %} +{% block html_lang %}{{ article.lang }}{% endblock %} +{% block head -%} + {{ super() -}} + {% if article.summary %} + + {% endif %} +{% endblock %} + +{% block title %}{{ article.title|striptags }}{% endblock %} + +{% block extra_head %} +{% import 'translations.html' as translations with context %} +{% if translations.entry_hreflang(article) %} + {{ translations.entry_hreflang(article) }} +{% endif %} +{% endblock %} + +{% block content %} +
+
+
+

+ {{ article.title }}

+ {% include 'twitter.html' %} +
+ +
+ {% include 'article_infos.html' %} + {{ article.content }} +
+ {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} +
+

Comments !

+
+ + +
+ {% endif %} + +
+
+{% endblock %} diff --git a/templates/article_infos.html b/templates/article_infos.html new file mode 100644 index 0000000..172ad85 --- /dev/null +++ b/templates/article_infos.html @@ -0,0 +1,23 @@ + diff --git a/templates/author.html b/templates/author.html new file mode 100644 index 0000000..0b37290 --- /dev/null +++ b/templates/author.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ author }}{% endblock %} diff --git a/templates/authors.html b/templates/authors.html new file mode 100644 index 0000000..e61a332 --- /dev/null +++ b/templates/authors.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Authors{% endblock %} + +{% block content %} + +
+

Authors on {{ SITENAME }}

+ +
+ +{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..2b30289 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,83 @@ + + + + {% block head %} + + + + {% block title %}{{ SITENAME }}{%endblock%} + + {% if FEED_ALL_ATOM %} + + {% endif %} + {% if FEED_ALL_RSS %} + + {% endif %} + {% block extra_head %}{% endblock extra_head %} + {% endblock head %} + + + +{% include 'github.html' %} + + {% block content %} + {% endblock %} +
+ {% if LINKS %} +
+

{{ LINKS_WIDGET_NAME | default('links') }}

+
    + {% for name, link in LINKS %} +
  • {{ name }}
  • + {% endfor %} +
+
+ {% endif %} + {% if SOCIAL or FEED_ALL_ATOM or FEED_ALL_RSS %} + + {% endif %} +
+ + + +{% include 'analytics.html' %} +{% include 'disqus_script.html' %} + + diff --git a/templates/categories.html b/templates/categories.html new file mode 100644 index 0000000..07f6290 --- /dev/null +++ b/templates/categories.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Categories{% endblock %} + +{% block content %} + +
+

Categories for {{ SITENAME }}

+ +
+ +{% endblock %} diff --git a/templates/category.html b/templates/category.html new file mode 100644 index 0000000..56f8e93 --- /dev/null +++ b/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ category }}{% endblock %} diff --git a/templates/comments.html b/templates/comments.html new file mode 100644 index 0000000..bb033c0 --- /dev/null +++ b/templates/comments.html @@ -0,0 +1 @@ +{% if DISQUS_SITENAME %}

There are comments.

{% endif %} diff --git a/templates/disqus_script.html b/templates/disqus_script.html new file mode 100644 index 0000000..23ec532 --- /dev/null +++ b/templates/disqus_script.html @@ -0,0 +1,11 @@ +{% if DISQUS_SITENAME %} + +{% endif %} diff --git a/templates/github.html b/templates/github.html new file mode 100644 index 0000000..ccc401f --- /dev/null +++ b/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/templates/index.html b/templates/index.html new file mode 100644 index 0000000..14e9c14 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,65 @@ +{% 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 %} +
    +
      + {% endif %} +
    1. +
      +

      {{ article.title }}

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

    Pages

    + + {% else %} +

    This site currently has no content.

    + {% endif %} +
    +{% endif %} +{% endblock content %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..428c47f --- /dev/null +++ b/templates/page.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} +{% block html_lang %}{{ page.lang }}{% endblock %} +{% block title %}{{ page.title|striptags }}{% endblock %} + +{% block extra_head %} +{% import 'translations.html' as translations with context %} +{% if translations.entry_hreflang(page) %} + {{ translations.entry_hreflang(page) }} +{% endif %} +{% endblock %} + +{% block content %} +
    +

    {{ page.title }}

    + {% import 'translations.html' as translations with context %} + {{ translations.translations_for(page) }} + {{ page.content }} +
    +{% endblock %} diff --git a/templates/period_archives.html b/templates/period_archives.html new file mode 100644 index 0000000..252e002 --- /dev/null +++ b/templates/period_archives.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} +{% block content %} +
    +

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

    + +
    +{% for article in dates %} +
    {{ article.locale_date }}
    +
    {{ article.title }}
    +{% endfor %} +
    +
    +{% endblock %} diff --git a/templates/tag.html b/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/templates/taglist.html b/templates/taglist.html new file mode 100644 index 0000000..58f3557 --- /dev/null +++ b/templates/taglist.html @@ -0,0 +1 @@ +{% if article.tags %}

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

    {% endif %} diff --git a/templates/tags.html b/templates/tags.html new file mode 100644 index 0000000..fb09955 --- /dev/null +++ b/templates/tags.html @@ -0,0 +1,16 @@ +{% 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/templates/translations.html b/templates/translations.html new file mode 100644 index 0000000..1eec7c4 --- /dev/null +++ b/templates/translations.html @@ -0,0 +1,16 @@ +{% macro translations_for(article) %} +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} +{% endmacro %} + +{% macro entry_hreflang(entry) %} +{% if entry.translations %} + {% for translation in entry.translations %} + + {% endfor %} +{% endif %} +{% endmacro %} diff --git a/templates/twitter.html b/templates/twitter.html new file mode 100644 index 0000000..bf78c32 --- /dev/null +++ b/templates/twitter.html @@ -0,0 +1,3 @@ +{% if TWITTER_USERNAME %} + +{% endif %} -- cgit v1.2.3