From 862a61c145ad083521f3941c56fd6e914d051a95 Mon Sep 17 00:00:00 2001
From: frosty
Date: Mon, 16 Jun 2025 23:29:31 -0400
Subject: add stuff that rocks, enable table of contents, add og tags, and more
---
themes/polaris/assets/css/style.css | 2 +-
themes/polaris/layouts/_default/baseof.html | 27 +++++++++++++++-------
themes/polaris/layouts/_default/single.html | 3 +++
themes/polaris/layouts/_markup/render-heading.html | 4 ++++
4 files changed, 27 insertions(+), 9 deletions(-)
create mode 100644 themes/polaris/layouts/_markup/render-heading.html
(limited to 'themes')
diff --git a/themes/polaris/assets/css/style.css b/themes/polaris/assets/css/style.css
index 1ca72e4..230e5b8 100644
--- a/themes/polaris/assets/css/style.css
+++ b/themes/polaris/assets/css/style.css
@@ -84,7 +84,7 @@ a:hover {
font-style: italic;
}
-nav ul {
+.nav-over ul {
list-style-type: none;
margin: 0;
padding-left: 0;
diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html
index 1b34f99..37a6059 100644
--- a/themes/polaris/layouts/_default/baseof.html
+++ b/themes/polaris/layouts/_default/baseof.html
@@ -1,17 +1,28 @@
+{{ $pageTitle := "" }}
+{{ if not .IsHome }}
+ {{ $pageTitle = printf "%s - %s" .Title .Site.Title }}
+{{ else }}
+ {{ $pageTitle = .Site.Title }}
+{{ end }}
+
- {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}
+ {{ $pageTitle }}
-
- {{ $notoSerif := resources.Get "css/noto-serif.css" | minify | fingerprint }}
-
- {{ $style := resources.Get "css/style.css" | minify | fingerprint }}
-
- {{ with .OutputFormats.Get "rss" }}
- {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
+
+ {{ with resources.Get "css/noto-serif.css" | minify | fingerprint }}
+
{{ end }}
+ {{ with resources.Get "css/style.css" | minify | fingerprint }}
+
+ {{ end }}
+
+
+
+
+
{{ end }}
{{ end }}
+ {{ if or (eq .Section "posts") (.Params.toc) }}
+ {{ with .TableOfContents }}{{ . }}{{ end }}
+ {{ end }}
{{ .Content }}
{{ end }}
diff --git a/themes/polaris/layouts/_markup/render-heading.html b/themes/polaris/layouts/_markup/render-heading.html
new file mode 100644
index 0000000..c4d156c
--- /dev/null
+++ b/themes/polaris/layouts/_markup/render-heading.html
@@ -0,0 +1,4 @@
+
+ {{ .Text }}
+{{ if and (ge .Level 2) (le .Level 3) }}#{{ end }}
+
--
cgit v1.2.3-70-g09d2