diff options
| author | Dennis Fink | 2026-11-04 23:43:49 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-04 23:43:49 +0100 |
| commit | 7998d56ed2225bab2081f9e08acc38c9bb99a67c (patch) | |
| tree | 2859c92f891f27e2490e95335c58793bd26f5756 | |
| parent | a55b317dcf9207705c78d90f0e4e34a737eb90c0 (diff) | |
| download | dennisfink.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.
| -rw-r--r-- | templates/404.html | 3 | ||||
| -rw-r--r-- | templates/blocks/gallery.html | 4 | ||||
| -rw-r--r-- | templates/blog-month-index.html | 4 | ||||
| -rw-r--r-- | templates/blog-year-index.html | 4 | ||||
| -rw-r--r-- | templates/categories.html | 4 | ||||
| -rw-r--r-- | templates/category.html | 4 | ||||
| -rw-r--r-- | templates/macros/pagination.html | 26 | ||||
| -rw-r--r-- | 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 @@ <p class="center"> <em>Personal notes on things that linger</em> — 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<span class="dots" aria-hidden="true"><span>.</span><span>.</span><span>.</span></span> + typo. I’m still thinking about which<span class="dots" + aria-hidden="true"><span>.</span><span>.</span><span>.</span></span> </p> <p class="center">The menu and the search up top will know more.</p> </article> 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() }} - <link rel="stylesheet" - type="text/css" - href="{{ '/static/css/category.css'|asseturl }}"> + <link rel="stylesheet" href="{{ '/static/css/category.css'|asseturl }}"> {% 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() }} - <link rel="stylesheet" - type="text/css" - href="{{ '/static/css/category.css'|asseturl }}"> + <link rel="stylesheet" href="{{ '/static/css/category.css'|asseturl }}"> {% 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() }} - <link rel="stylesheet" - type="text/css" - href="{{ '/static/css/categories.css'|asseturl }}"> + <link rel="stylesheet" href="{{ '/static/css/categories.css'|asseturl }}"> {% 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() }} - <link rel="stylesheet" - type="text/css" - href="{{ '/static/css/category.css'|asseturl }}"> + <link rel="stylesheet" href="{{ '/static/css/category.css'|asseturl }}"> {% 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 @@ </li> {% if window_start > 2 %} <li> - <span aria-hidden="true">…</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">…</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">…</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">…</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">…</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">…</span> + <span aria-hidden="true">…</span> </li> {% endif %} <li> 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() }} - <link rel="stylesheet" - type="text/css" - href="{{ '/static/css/category.css'|asseturl }}"> + <link rel="stylesheet" href="{{ '/static/css/category.css'|asseturl }}"> {% endblock %} {% set title = "Tag: " + this.tag %} {% set description = "Posts tagged with “" + this.tag + "” on Still Thinking About It." %} |
