From 879c7506971d5866d5195fcf6c58b759fd0eaa7a Mon Sep 17 00:00:00 2001 From: Starfall Date: Thu, 31 Oct 2024 14:38:44 -0500 Subject: refactor CSS --- _includes/archive.njk | 46 ++++++++++++++++++++++++++++++++++++++++++++++ _includes/base.njk | 8 ++++---- _includes/blogpost.njk | 9 +++------ 3 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 _includes/archive.njk (limited to '_includes') diff --git a/_includes/archive.njk b/_includes/archive.njk new file mode 100644 index 0000000..1425f6e --- /dev/null +++ b/_includes/archive.njk @@ -0,0 +1,46 @@ +--- +title = "Starfall" +--- + + + + {{ title }} + + + + + + {{ extraHeadContent | safe }} + + + +
+

{{ title }}

+ + +
+ +
+
+ Title: {{ title }}
+ Author: {{ author }}
+ Source: {{ source }}
+
+ +
+{{ content | safe }} +
+
+ + + + diff --git a/_includes/base.njk b/_includes/base.njk index 302f5cd..5924218 100644 --- a/_includes/base.njk +++ b/_includes/base.njk @@ -1,5 +1,8 @@ --- title = "Starfall" + +[navOptions] +activeAnchorClass = "active" --- @@ -8,7 +11,7 @@ title = "Starfall" - + {{ extraHeadContent | safe }} @@ -34,9 +37,6 @@ title = "Starfall" diff --git a/_includes/blogpost.njk b/_includes/blogpost.njk index 5797199..3463250 100644 --- a/_includes/blogpost.njk +++ b/_includes/blogpost.njk @@ -8,7 +8,7 @@ title = "Starfall" - + {{ extraHeadContent | safe }} @@ -30,15 +30,12 @@ title = "Starfall"
-{% if author %}{{ author }} {% endif -%} -{% if date %}{{ date | local_date }}{% endif -%} +{% if author %}Author: {{ author }}
{% endif -%} +{% if date %}Posted: {{ date | local_date }}
{% endif -%} {{ content | safe }}
-- cgit