From 20d62336a446bea6c5846805e8325b67cd59fe54 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 8 Oct 2024 11:49:47 -0400 Subject: nice redesign (#145) * nix: drop treefmt * nix: remove .envrc * nix: move `serve` to apps output * nice redesign * use local stylesheet * nix: fix build --- templates/partials/footer.html | 6 +++++- templates/partials/head.html | 20 +++++++++++--------- templates/partials/nav.html | 10 +++------- 3 files changed, 19 insertions(+), 17 deletions(-) (limited to 'templates/partials') diff --git a/templates/partials/footer.html b/templates/partials/footer.html index 122766f..c116580 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -1,3 +1,7 @@ diff --git a/templates/partials/head.html b/templates/partials/head.html index 5b1dcf6..fa2c30d 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -1,20 +1,22 @@ - - - {% if page.title %} - {{ page.title }} :: {{ config.title }} + {% set title = page.title %} {% elif section.title %} - {{ section.title }} :: {{ config.title }} + {% set title = section.title %} {% else %} - {{ config.title }} + {% set title = config.title %} {% endif %} + {{ title }} + {% if page.description %} - + {% set description = page.description %} {% elif section.description %} - + {% set description = section.description %} {% else %} - + {% set description = config.description %} {% endif %} + + + diff --git a/templates/partials/nav.html b/templates/partials/nav.html index e65db1d..bd74873 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -1,9 +1,5 @@ -- cgit v1.2.3