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 %} + + {% 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 %}