summaryrefslogtreecommitdiff
path: root/templates/macros
diff options
context:
space:
mode:
authorDennis Fink2026-11-04 23:43:49 +0100
committerDennis Fink2026-11-04 23:43:49 +0100
commit7998d56ed2225bab2081f9e08acc38c9bb99a67c (patch)
tree2859c92f891f27e2490e95335c58793bd26f5756 /templates/macros
parenta55b317dcf9207705c78d90f0e4e34a737eb90c0 (diff)
downloaddennisfink.me-7998d56ed2225bab2081f9e08acc38c9bb99a67c.tar.gz
dennisfink.me-7998d56ed2225bab2081f9e08acc38c9bb99a67c.zip
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.
Diffstat (limited to '')
-rw-r--r--templates/macros/pagination.html26
1 files changed, 13 insertions, 13 deletions
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 @@
</li>
{% if window_start > 2 %}
<li>
- <span aria-hidden="true">&hellip;</span>
+ <span aria-hidden="true">…</span>
</li>
{% endif %}
{% endif %}
@@ -35,7 +35,7 @@
{% if window_end < total %}
{% if window_end < total - 1 %}
<li>
- <span aria-hidden="true">&hellip;</span>
+ <span aria-hidden="true">…</span>
</li>
{% endif %}
<li>
@@ -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 @@
</li>
{% if window_start > first_year + 1 %}
<li>
- <span aria-hidden="true">&hellip;</span>
+ <span aria-hidden="true">…</span>
</li>
{% 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 %}
<li>
{% if year == current_year %}
@@ -105,7 +105,7 @@
{% if window_end < last_year %}
{% if window_end < last_year - 1 %}
<li>
- <span aria-hidden="true">&hellip;</span>
+ <span aria-hidden="true">…</span>
</li>
{% endif %}
<li>
@@ -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 @@
</li>
{% if window_start > 1 %}
<li>
- <span aria-hidden="true">&hellip;</span>
+ <span aria-hidden="true">…</span>
</li>
{% endif %}
{% endif %}
@@ -197,7 +197,7 @@
{% if window_end < total - 1 %}
{% if window_end < total - 2 %}
<li>
- <span aria-hidden="true">&hellip;</span>
+ <span aria-hidden="true">…</span>
</li>
{% endif %}
<li>