From b3dc7ad8554b7a32012d0aece92da7f949fff166 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 31 Aug 2024 14:37:39 -0500 Subject: sticky header and other tweaks --- hugo.yaml | 3 +++ layouts/shortcodes/alpha-ol.html | 3 +++ static/stylesheets/highlight.css | 6 ++++++ static/stylesheets/style.css | 6 ++++++ 4 files changed, 18 insertions(+) create mode 100644 layouts/shortcodes/alpha-ol.html diff --git a/hugo.yaml b/hugo.yaml index 6683001..704cefc 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -17,3 +17,6 @@ markup: noClasses: false lineNos: true + goldmark: + renderer: + unsafe: true diff --git a/layouts/shortcodes/alpha-ol.html b/layouts/shortcodes/alpha-ol.html new file mode 100644 index 0000000..b5ad88f --- /dev/null +++ b/layouts/shortcodes/alpha-ol.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/static/stylesheets/highlight.css b/static/stylesheets/highlight.css index 0c15e1b..035b2d0 100644 --- a/static/stylesheets/highlight.css +++ b/static/stylesheets/highlight.css @@ -84,3 +84,9 @@ /* GenericTraceback */ .chroma .gt { background-color: #fb8019; font-weight: bold } /* GenericUnderline */ .chroma .gl { } /* TextWhitespace */ .chroma .w { } + +/* Overrides */ +/* nginx KeywordNamespace */ .chroma code.language-nginx .kn { color: #fabd2f } +/* nginx LiteralString */ .chroma code.language-nginx .s { color: #ffffff } +/* sh NameVariable */ .chroma code.language-sh .nv { color: #8ec07c } +/* sh CommentPreproc */ .chroma .cp { color: #928374 } diff --git a/static/stylesheets/style.css b/static/stylesheets/style.css index 8caa40b..0006ba3 100644 --- a/static/stylesheets/style.css +++ b/static/stylesheets/style.css @@ -14,6 +14,8 @@ header { padding: 5px 10px; gap: 1em; user-select: none; + position: sticky; + top: 0; } #title { @@ -109,6 +111,10 @@ ol, ul, pre code { max-width: 100%; } +.alpha-ol ol { + list-style-type: upper-alpha; +} + img, figcaption { margin: auto; display: block; -- cgit v1.2.3