From a90d3c7061306dd82c6079489d2d096daebbfab6 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 11 Dec 2022 04:26:58 -0800 Subject: [PATCH] Add header links --- README.md | 1 + layouts/partials/paige_page.html | 2 +- layouts/partials/paige_style.html | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c7dc252..292f8cd1 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ Term page: - Bootstrap support - Facebook sharing support - Google Analytics support +- Header links - Landing page - Light color scheme - Math typesetting support diff --git a/layouts/partials/paige_page.html b/layouts/partials/paige_page.html index a72ea00b..e569b222 100644 --- a/layouts/partials/paige_page.html +++ b/layouts/partials/paige_page.html @@ -14,5 +14,5 @@

{{ end }} {{ if .Content }} -{{ .Content }} +{{ .Content | replaceRE `()` `${1}${3}` | safeHTML }} {{ end }} diff --git a/layouts/partials/paige_style.html b/layouts/partials/paige_style.html index ce8f2ab7..eb09ee82 100644 --- a/layouts/partials/paige_style.html +++ b/layouts/partials/paige_style.html @@ -12,4 +12,13 @@ blockquote p:last-of-type { margin-bottom: 0; } + + .headerlink { + display: none; + margin-left: 0.25rem; + } + + h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink { + display: inline; + }