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/macros/pagination.html | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
(limited to 'templates/macros/pagination.html')
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 %}
--
cgit v1.3.1