From 8585f2581608809ded56e71b93e2c3c23aeb28b5 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 21 Jun 2025 23:16:38 -0400 Subject: [PATCH] update templates, recipe --- justfile | 5 +++++ templates/base.html | 12 ++++++++++++ templates/{post.html => page.html} | 1 - 3 files changed, 17 insertions(+), 1 deletion(-) rename templates/{post.html => page.html} (77%) diff --git a/justfile b/justfile index 61d190b..0687ad0 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,8 @@ +build: + @just run build +serve: + @just run build + @just run serve run arg: #!/bin/sh if [ -d "public" ] && [ "{{arg}}" = "build" ]; then diff --git a/templates/base.html b/templates/base.html index 7ff91cc..a983cd3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,7 +13,19 @@
+ {% if header %} + + {% endif %} {% block content %}{% endblock %} + {% if footer %} +
+
+ {{ footer | safe }} +
+ {% endif %}
diff --git a/templates/post.html b/templates/page.html similarity index 77% rename from templates/post.html rename to templates/page.html index 795eb4a..d568de1 100644 --- a/templates/post.html +++ b/templates/page.html @@ -1,7 +1,6 @@ {% extends "base.html" %} {% block content %} -

{{ metadata.title }}

{{ content | safe }}
{% endblock %}