From 958242f4d5ca21a9ee1b2db8c4a0cb6175a1879c Mon Sep 17 00:00:00 2001 From: Bun Date: Thu, 3 Jul 2025 00:47:02 -0400 Subject: [PATCH] Add a 404 entry, standardize more text --- templates/404.html | 6 ++++++ templates/blog-entry.html | 10 +--------- templates/blog-metadata.html | 11 +++++++++++ templates/blog-page.html | 14 +++----------- templates/sidebar.html | 2 +- 5 files changed, 22 insertions(+), 21 deletions(-) create mode 100644 templates/404.html create mode 100644 templates/blog-metadata.html diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..1b965b9 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} + +{% block content %} +

404, page not found

+

lost? you can always return home.

+{% endblock content %} diff --git a/templates/blog-entry.html b/templates/blog-entry.html index 87777fa..45a86cd 100644 --- a/templates/blog-entry.html +++ b/templates/blog-entry.html @@ -4,14 +4,6 @@ {{ page.description }}
- written: {{ page.date }} -
- authors: {%- for tag in page.taxonomies.authors | sort | unique(case_sensitive=false) %} - - {% endfor -%} -
- tags: {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %} - - {% endfor -%} + {% include "blog-metadata.html" %}
diff --git a/templates/blog-metadata.html b/templates/blog-metadata.html new file mode 100644 index 0000000..ffc95dc --- /dev/null +++ b/templates/blog-metadata.html @@ -0,0 +1,11 @@ + + written: {{ page.date }} +
+ authors: {%- for tag in page.taxonomies.authors | sort | unique(case_sensitive=false) %} + + {% endfor -%} +
+ tags: {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %} + + {% endfor -%} +
diff --git a/templates/blog-page.html b/templates/blog-page.html index 5d720c6..7a7cffa 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -4,16 +4,8 @@

{{ page.title }}

-

- written: {{ page.date }} -
- authors: {%- for tag in page.taxonomies.authors | sort | unique(case_sensitive=false) %} - - {% endfor -%} -
- tags: {%- for tag in page.taxonomies.tags | sort | unique(case_sensitive=false) %} - - {% endfor -%} -

+

+ {% include "blog-metadata.html" %} +

{{ page.content | safe }} {% endblock content %} diff --git a/templates/sidebar.html b/templates/sidebar.html index c985861..399a601 100644 --- a/templates/sidebar.html +++ b/templates/sidebar.html @@ -17,7 +17,7 @@
nixfox
📰 news
⬆️ uptime
- 📧 email
+ ✉️ email
☁️ nextcloud
🔒 vaultwarden
🗄️ forgejo