From 5fa81500dcc07a853a01b0b0d813069467995807 Mon Sep 17 00:00:00 2001 From: Daniel Hader Date: Sat, 29 Aug 2026 13:06:16 -0500 Subject: work in progress css --- themes/simple/templates/archives.html | 14 ++++ themes/simple/templates/article.html | 65 ++++++++++++++++ themes/simple/templates/author.html | 7 ++ themes/simple/templates/authors.html | 12 +++ themes/simple/templates/base.html | 108 +++++++++++++++++++++++++++ themes/simple/templates/categories.html | 12 +++ themes/simple/templates/category.html | 7 ++ themes/simple/templates/index.html | 29 +++++++ themes/simple/templates/page.html | 33 ++++++++ themes/simple/templates/pagination.html | 17 +++++ themes/simple/templates/period_archives.html | 14 ++++ themes/simple/templates/tag.html | 7 ++ themes/simple/templates/tags.html | 12 +++ themes/simple/templates/translations.html | 16 ++++ 14 files changed, 353 insertions(+) create mode 100644 themes/simple/templates/archives.html create mode 100644 themes/simple/templates/article.html create mode 100644 themes/simple/templates/author.html create mode 100644 themes/simple/templates/authors.html create mode 100644 themes/simple/templates/base.html create mode 100644 themes/simple/templates/categories.html create mode 100644 themes/simple/templates/category.html create mode 100644 themes/simple/templates/index.html create mode 100644 themes/simple/templates/page.html create mode 100644 themes/simple/templates/pagination.html create mode 100644 themes/simple/templates/period_archives.html create mode 100644 themes/simple/templates/tag.html create mode 100644 themes/simple/templates/tags.html create mode 100644 themes/simple/templates/translations.html (limited to 'themes/simple/templates') diff --git a/themes/simple/templates/archives.html b/themes/simple/templates/archives.html new file mode 100644 index 0000000..a61bf3c --- /dev/null +++ b/themes/simple/templates/archives.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - Archives{% endblock %} + +{% block content %} +

Archives for {{ SITENAME }}

+ +
+ {% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+ {% endfor %} +
+{% endblock %} diff --git a/themes/simple/templates/article.html b/themes/simple/templates/article.html new file mode 100644 index 0000000..a01de10 --- /dev/null +++ b/themes/simple/templates/article.html @@ -0,0 +1,65 @@ +{% extends "base.html" %} +{% block html_lang %}{{ article.lang }}{% endblock %} + +{% block title %}{{ SITENAME|striptags }} - {{ article.title|striptags }}{% endblock %} + +{% block head %} + {{ super() }} + + {% import 'translations.html' as translations with context %} + {% if translations.entry_hreflang(article) %} + {{ translations.entry_hreflang(article) }} + {% endif %} + + {% 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) }} +
+ {{ article.content }} +
+

Published:

+ {% if article.modified %} +

Last updated:

+ {% endif %} + {% if article.authors %} +
+ By {% for author in article.authors %} + {{ author }} + {% endfor %} +
+ {% endif %} + {% if article.category %} +

+ Category: {{ article.category }} +

+ {% endif %} + {% if article.tags %} +

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

+ {% endif %} +
+
+{% endblock %} diff --git a/themes/simple/templates/author.html b/themes/simple/templates/author.html new file mode 100644 index 0000000..06f871d --- /dev/null +++ b/themes/simple/templates/author.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME|striptags }} - Articles by {{ author }}{% endblock %} + +{% block content_title %} +

Articles by {{ author }}

+{% endblock %} diff --git a/themes/simple/templates/authors.html b/themes/simple/templates/authors.html new file mode 100644 index 0000000..97a7457 --- /dev/null +++ b/themes/simple/templates/authors.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - Authors{% endblock %} + +{% block content %} +

Authors on {{ SITENAME }}

+ +{% endblock %} diff --git a/themes/simple/templates/base.html b/themes/simple/templates/base.html new file mode 100644 index 0000000..f34054f --- /dev/null +++ b/themes/simple/templates/base.html @@ -0,0 +1,108 @@ + + + + {% block head %} + {% block title %}{{ SITENAME|striptags }}{% endblock title %} + + + + {% if SITESUBTITLE %} + + {% endif %} + {% if CSS_FILE %} + + {% endif %} + {% if STYLESHEET_URL %} + + {% endif %} + {% 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 %} + + + + {% block body %} +
+ +
+ +
+ {% block content %} + {% endblock content %} +
+
+ {% block footer %} +
+ Made with Pelican, +
+ {% endblock footer %} +
+
+
+ {% endblock body %} + + diff --git a/themes/simple/templates/categories.html b/themes/simple/templates/categories.html new file mode 100644 index 0000000..c723f8a --- /dev/null +++ b/themes/simple/templates/categories.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - Categories{% endblock %} + +{% block content %} +

Categories on {{ SITENAME }}

+ +{% endblock %} diff --git a/themes/simple/templates/category.html b/themes/simple/templates/category.html new file mode 100644 index 0000000..bfad391 --- /dev/null +++ b/themes/simple/templates/category.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME|striptags }} - {{ category }} category{% endblock %} + +{% block content_title %} +

Articles in the {{ category }} category

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

All articles

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

{{ article.title }}

+
{{ article.summary }}
+
+

Published:

+ {%- if article.authors %} +
By + {% for author in article.authors %} + {{ author }} + {% endfor %} +
+ {%- endif %} +
+
+ {% endfor %} + + {% if articles_page.has_other_pages() %} + {% include 'pagination.html' %} + {% endif %} + +{% endblock content %} diff --git a/themes/simple/templates/page.html b/themes/simple/templates/page.html new file mode 100644 index 0000000..4096e7a --- /dev/null +++ b/themes/simple/templates/page.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} +{% block html_lang %}{{ page.lang }}{% endblock %} + +{% block title %}{{ SITENAME|striptags }} - {{ page.title|striptags }}{%endblock%} + +{% block head %} + {{ super() }} + + {% 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) }} + + {% block page_content %}{{ page.content }}{% endblock page_content %} + + {% if page.modified %} +
+

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

+
+ {% endif %} +
+{% endblock %} diff --git a/themes/simple/templates/pagination.html b/themes/simple/templates/pagination.html new file mode 100644 index 0000000..9511fdb --- /dev/null +++ b/themes/simple/templates/pagination.html @@ -0,0 +1,17 @@ +{% if DEFAULT_PAGINATION %} + {% set first_page = articles_paginator.page(1) %} + {% set last_page = articles_paginator.page(articles_paginator.num_pages) %} + +{% endif %} diff --git a/themes/simple/templates/period_archives.html b/themes/simple/templates/period_archives.html new file mode 100644 index 0000000..181f493 --- /dev/null +++ b/themes/simple/templates/period_archives.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - {{ period | reverse | join(' ') }} archives{% endblock %} + +{% block content %} +

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

+ +
+ {% for article in dates %} +
{{ article.locale_date }}
+
{{ article.title }}
+ {% endfor %} +
+{% endblock %} diff --git a/themes/simple/templates/tag.html b/themes/simple/templates/tag.html new file mode 100644 index 0000000..be21778 --- /dev/null +++ b/themes/simple/templates/tag.html @@ -0,0 +1,7 @@ +{% extends "index.html" %} + +{% block title %}{{ SITENAME|striptags }} - {{ tag }} tag{% endblock %} + +{% block content_title %} +

Articles tagged with {{ tag }}

+{% endblock %} diff --git a/themes/simple/templates/tags.html b/themes/simple/templates/tags.html new file mode 100644 index 0000000..b21e5b5 --- /dev/null +++ b/themes/simple/templates/tags.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME|striptags }} - Tags{% endblock %} + +{% block content %} +

Tags for {{ SITENAME }}

+ +{% endblock %} diff --git a/themes/simple/templates/translations.html b/themes/simple/templates/translations.html new file mode 100644 index 0000000..eed0703 --- /dev/null +++ b/themes/simple/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 %} -- cgit v1.2.3