From 61fbce70abd2cafaef960f5e787a97a3a828d74e Mon Sep 17 00:00:00 2001 From: frosty Date: Tue, 17 Jun 2025 04:38:15 -0400 Subject: remove static fonts, update posts, clean up layout --- themes/polaris/layouts/_default/baseof.html | 19 +++++-------------- themes/polaris/layouts/_default/single.html | 2 +- themes/polaris/layouts/partials/header.html | 20 ++++++++++++++++++++ themes/polaris/layouts/partials/nav.html | 29 +++++++++++++---------------- themes/polaris/layouts/partials/toc.html | 6 ++++++ 5 files changed, 45 insertions(+), 31 deletions(-) create mode 100644 themes/polaris/layouts/partials/header.html create mode 100644 themes/polaris/layouts/partials/toc.html (limited to 'themes/polaris/layouts') diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html index 37a6059..3c052ea 100644 --- a/themes/polaris/layouts/_default/baseof.html +++ b/themes/polaris/layouts/_default/baseof.html @@ -11,30 +11,21 @@ {{ $pageTitle }} - - {{ with resources.Get "css/noto-serif.css" | minify | fingerprint }} - - {{ end }} {{ with resources.Get "css/style.css" | minify | fingerprint }} - + {{ end }} - - -
+ {{ partial "header.html" . }} +
{{ block "main" . }} - {{ .Content }} + {{ . }} {{ end }} -
- + diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html index 56b9d9d..f059c55 100644 --- a/themes/polaris/layouts/_default/single.html +++ b/themes/polaris/layouts/_default/single.html @@ -8,7 +8,7 @@ {{ end }} {{ end }} {{ if or (eq .Section "posts") (.Params.toc) }} - {{ with .TableOfContents }}{{ . }}{{ end }} + {{ partial "toc.html" . }} {{ end }} {{ .Content }} {{ end }} diff --git a/themes/polaris/layouts/partials/header.html b/themes/polaris/layouts/partials/header.html new file mode 100644 index 0000000..5e34bda --- /dev/null +++ b/themes/polaris/layouts/partials/header.html @@ -0,0 +1,20 @@ +
+
+

{{ site.Title }}

+ {{ .Params.subtext | default .Site.Params.subtext }} +
+ +
+
diff --git a/themes/polaris/layouts/partials/nav.html b/themes/polaris/layouts/partials/nav.html index dc1e463..35fb535 100644 --- a/themes/polaris/layouts/partials/nav.html +++ b/themes/polaris/layouts/partials/nav.html @@ -1,17 +1,14 @@ -