From e537f0d09e795d098831f542398dd8e735a45d9d Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 2 Mar 2025 22:26:51 -0800 Subject: [PATCH] Move paige.style to style tag --- README.md | 2 +- assets/css/paige/paige.css | 4 ---- layouts/partials/paige/head.html | 5 +++++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4d2db83f..d4bd9fa6 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ There is a single parameter object with sensible defaults that can be overridden enable_math = false # Enables math typesetting for this page exclude_feeds = false # Excludes this page from feeds exclude_search = false # Excludes this page from search -style = "" # CSS included at the end of the stylesheet for this page +style = "" # CSS included in a stylesheet for this page [paige.alert] diff --git a/assets/css/paige/paige.css b/assets/css/paige/paige.css index 3fe8766e..55b5bc5b 100644 --- a/assets/css/paige/paige.css +++ b/assets/css/paige/paige.css @@ -103,7 +103,3 @@ table { transition: none; } } - -{{ with $page.Param "paige.style" }} - {{ . | safeCSS }} -{{ end }} diff --git a/layouts/partials/paige/head.html b/layouts/partials/paige/head.html index d90bfc8e..11f00dd1 100644 --- a/layouts/partials/paige/head.html +++ b/layouts/partials/paige/head.html @@ -41,5 +41,10 @@ {{ end }} {{ partial "paige/links.html" $page }} + + {{ with $page.Param "paige.style" }} + + {{ end }} + {{ partial "paige/func-include.html" (dict "name" "head-last%s.html" "page" $page) | safeHTML }}