From 9b773d7ce2d0474e43d111240b1e8b9183311c7f Mon Sep 17 00:00:00 2001 From: Devin Haska Date: Sun, 4 Feb 2024 10:53:11 -0800 Subject: [PATCH] fix: clean up html/njk formatting --- src/_includes/partials/footer.html | 4 +- src/_includes/partials/header.html | 4 +- src/_includes/partials/menu.html | 26 ++++-------- src/_layouts/base.html | 66 ++++++++++++++---------------- src/_layouts/post.html | 6 +-- 5 files changed, 45 insertions(+), 61 deletions(-) diff --git a/src/_includes/partials/footer.html b/src/_includes/partials/footer.html index b39ed1f..a45e63a 100644 --- a/src/_includes/partials/footer.html +++ b/src/_includes/partials/footer.html @@ -1 +1,3 @@ - + diff --git a/src/_includes/partials/header.html b/src/_includes/partials/header.html index 8116894..915f04f 100644 --- a/src/_includes/partials/header.html +++ b/src/_includes/partials/header.html @@ -1 +1,3 @@ -
{% include "partials/menu.html" %}
+
+ {% include "partials/menu.html" %} +
diff --git a/src/_includes/partials/menu.html b/src/_includes/partials/menu.html index 6281e1b..52d124e 100644 --- a/src/_includes/partials/menu.html +++ b/src/_includes/partials/menu.html @@ -1,20 +1,10 @@ diff --git a/src/_layouts/base.html b/src/_layouts/base.html index 718a81d..4e9c236 100644 --- a/src/_layouts/base.html +++ b/src/_layouts/base.html @@ -1,38 +1,32 @@ - + - - - - - - - - {% for preload in preloads %} - - {% endfor %} {% set fontCss %} {% include "css/fontFace.njk" %} {% include - "css/fontVariables.njk" %}{% endset %} - - {% set colorCss %} {% include "css/colorVariables.njk" %} {% endset %} - - - - - {% include "partials/header.html" %} -
{{ content | safe }}
- {% include "partials/footer.html" %} - + + + + + + + {% for preload in preloads %} + + {% endfor %} + {% set fontCss %} + {% include "css/fontFace.njk" %} + {% include "css/fontVariables.njk" %} + {% endset %} + + {% set colorCss %} + {% include "css/colorVariables.njk" %} + {% endset %} + + + + {% include "partials/header.html" %} +
+ {{ content | safe }} +
+ {% include "partials/footer.html" %} + diff --git a/src/_layouts/post.html b/src/_layouts/post.html index 4bc1565..3b7978e 100644 --- a/src/_layouts/post.html +++ b/src/_layouts/post.html @@ -3,12 +3,8 @@ layout: base ---

{{ date }}

-

{{ title }}

- {{ content | safe }}