From ce89015228e9fd3babf7565ef935f1fb488c9ec7 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 14 Jul 2025 17:57:40 -0400 Subject: [PATCH] update templates, style --- content/static/style.css | 5 +++++ templates/basic.html | 2 +- templates/header.html | 10 ++++------ templates/page.html | 15 ++++++++++----- templates/post_list.html | 27 ++++++++++++++------------- templates/title.html | 1 + 6 files changed, 35 insertions(+), 25 deletions(-) create mode 100644 templates/title.html diff --git a/content/static/style.css b/content/static/style.css index 56bbae9..9e5633e 100644 --- a/content/static/style.css +++ b/content/static/style.css @@ -90,6 +90,11 @@ h1 { font-weight: bold; } +.title { + text-transform: lowercase; + font-family: monospace; +} + article h1:first-of-type { margin-block-start: 1.67rem; } diff --git a/templates/basic.html b/templates/basic.html index cddec7e..c21527d 100644 --- a/templates/basic.html +++ b/templates/basic.html @@ -2,7 +2,7 @@ {% block content %} {% if metadata.show_title %} -

{{ metadata.title }}

+{% include "title.html" %} {% endif %} {{ content | safe }} {% endblock %} diff --git a/templates/header.html b/templates/header.html index 1064e6e..6882de2 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1,9 +1,7 @@ -
-
diff --git a/templates/page.html b/templates/page.html index 8d43005..70513a7 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,12 +1,17 @@ -{% extends "base.html" %} +{% extends "base.html" %} {% block content %} -{% block content %} {% if metadata.show_title %} -

{{ metadata.title }}

-{% endif %} +{% include "title.html" %} {% if metadata.date %} -
+
+ +
{% endif %} +
+{% endif %} +
{{ content | safe }}
{% endblock %} + diff --git a/templates/post_list.html b/templates/post_list.html index 5647008..4da52b7 100644 --- a/templates/post_list.html +++ b/templates/post_list.html @@ -1,18 +1,19 @@ -{% extends "base.html" %} +{% extends "base.html" %} {% block content %} -{% block content %} - -

{{ metadata.title }}

+{% if metadata.show_title %} +{% include "title.html" %} +{% endif %}
{{ content | safe }}
{% if post_list %} - -{% endif %} -{% endblock %} - - + +{% endif %} {% endblock %} diff --git a/templates/title.html b/templates/title.html new file mode 100644 index 0000000..59c4f6e --- /dev/null +++ b/templates/title.html @@ -0,0 +1 @@ +

{{ metadata.title }}