From 7998d56ed2225bab2081f9e08acc38c9bb99a67c Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Wed, 4 Nov 2026 23:43:49 +0100 Subject: Normalize template formatting This standardizes indentation and line wrapping across the 404 page, gallery, archive, category, and tag templates, and simplifies stylesheet declarations. It also replaces HTML entities with literal ellipsis characters in pagination controls. --- templates/404.html | 3 ++- templates/blocks/gallery.html | 4 ++-- templates/blog-month-index.html | 4 +--- templates/blog-year-index.html | 4 +--- templates/categories.html | 4 +--- templates/category.html | 4 +--- templates/macros/pagination.html | 26 +++++++++++++------------- templates/tag.html | 4 +--- 8 files changed, 22 insertions(+), 31 deletions(-) diff --git a/templates/404.html b/templates/404.html index 5328908..447fd8a 100644 --- a/templates/404.html +++ b/templates/404.html @@ -22,7 +22,8 @@

Personal notes on things that linger — but this page isn’t one of them. Maybe it never existed, maybe it moved, or maybe the URL has a - typo. I’m still thinking about which + typo. I’m still thinking about which

The menu and the search up top will know more.

diff --git a/templates/blocks/gallery.html b/templates/blocks/gallery.html index 414eaa0..2910015 100644 --- a/templates/blocks/gallery.html +++ b/templates/blocks/gallery.html @@ -22,8 +22,8 @@ {% set layout = this["images"].blocks | gallery_layout( - record, - target_ratio=this["target_ratio"] + record, + target_ratio=this["target_ratio"] ) %} {% if layout %} diff --git a/templates/blog-month-index.html b/templates/blog-month-index.html index 96c5f93..5d30c9d 100644 --- a/templates/blog-month-index.html +++ b/templates/blog-month-index.html @@ -8,9 +8,7 @@ {% endblock %} {% block styles %} {{ super() }} - + {% endblock %} {% set month_name = this.date | dateformat("MMMM y") %} {% set title = "Monthly archive: " + month_name %} diff --git a/templates/blog-year-index.html b/templates/blog-year-index.html index b7044ac..e9428d2 100644 --- a/templates/blog-year-index.html +++ b/templates/blog-year-index.html @@ -8,9 +8,7 @@ {% endblock %} {% block styles %} {{ super() }} - + {% endblock %} {% set title = "Yearly archive: " + this.key %} {% set description = "Browse posts from " + this.key + " on Still Thinking About It." %} diff --git a/templates/categories.html b/templates/categories.html index bc124f8..943fb55 100644 --- a/templates/categories.html +++ b/templates/categories.html @@ -6,9 +6,7 @@ {% endblock %} {% block styles %} {{ super() }} - + {% endblock %} {% set title = "Categories" %} {% set description = "Browse the main themes and categories of posts on Still Thinking About It." %} diff --git a/templates/category.html b/templates/category.html index fcd63eb..e4ebc2c 100644 --- a/templates/category.html +++ b/templates/category.html @@ -6,9 +6,7 @@ {% endblock %} {% block styles %} {{ super() }} - + {% endblock %} {% set title = "Category " + this.name %} {% set description = "Posts in the category “" + this.name + "” on Still Thinking About It." %} diff --git a/templates/macros/pagination.html b/templates/macros/pagination.html index adb1b5c..4c8f080 100644 --- a/templates/macros/pagination.html +++ b/templates/macros/pagination.html @@ -18,7 +18,7 @@ {% if window_start > 2 %}
  • - +
  • {% endif %} {% endif %} @@ -35,7 +35,7 @@ {% if window_end < total %} {% if window_end < total - 1 %}
  • - +
  • {% endif %}
  • @@ -57,7 +57,7 @@ {% macro render_year_archive_navigation( current_year_page, archive_window=2 - ) %} +) %} {% set current_year = current_year_page.year %} {% set first_year_page = current_year_page.first_year_page %} {% set last_year_page = current_year_page.last_year_page %} @@ -84,14 +84,14 @@
  • {% if window_start > first_year + 1 %}
  • - +
  • {% endif %} {% endif %} {% for year in range(window_start, window_end + 1) %} {% set year_page = site.get( - '/blog@index-pages/year/{:04d}'.format(year) - ) %} + '/blog@index-pages/year/{:04d}'.format(year) + ) %} {% if year_page %}
  • {% if year == current_year %} @@ -105,7 +105,7 @@ {% if window_end < last_year %} {% if window_end < last_year - 1 %}
  • - +
  • {% endif %}
  • @@ -128,12 +128,12 @@ {% macro render_month_archive_navigation( current_month_page, archive_window=2 - ) %} +) %} {% set year_pages = index_pages('year') | sort(attribute='year') %} {% set ns = namespace( - month_pages=[], - current_position=none - ) %} + month_pages=[], + current_position=none + ) %} {% for year_page in year_pages %} {% set ns.month_pages = ns.month_pages + (year_page.subindexes | sort(attribute='month')) %} {% endfor %} @@ -177,7 +177,7 @@
  • {% if window_start > 1 %}
  • - +
  • {% endif %} {% endif %} @@ -197,7 +197,7 @@ {% if window_end < total - 1 %} {% if window_end < total - 2 %}
  • - +
  • {% endif %}
  • diff --git a/templates/tag.html b/templates/tag.html index b3642bc..a816c28 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -6,9 +6,7 @@ {% endblock %} {% block styles %} {{ super() }} - + {% endblock %} {% set title = "Tag: " + this.tag %} {% set description = "Posts tagged with “" + this.tag + "” on Still Thinking About It." %} -- cgit v1.3.1