From 5c804816b0a39b69e34cc4929d8feaa4b090b5c8 Mon Sep 17 00:00:00 2001 From: Pascal Le Merrer Date: Wed, 22 Apr 2026 10:59:19 +0200 Subject: [PATCH] Turn titles into links --- content/images/link.svg | 4 ++++ pelicanconf.py | 2 +- themes/blue-penguin/static/css/screen.css | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 content/images/link.svg diff --git a/content/images/link.svg b/content/images/link.svg new file mode 100644 index 0000000..d2f42a7 --- /dev/null +++ b/content/images/link.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/pelicanconf.py b/pelicanconf.py index fda2c40..97026c0 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -44,7 +44,7 @@ MARKDOWN = { "markdown.extensions.codehilite": {"css_class": "highlight"}, "markdown.extensions.extra": {}, "markdown.extensions.meta": {}, - "markdown.extensions.toc": {}, + "markdown.extensions.toc": {"anchorlink": True}, }, "output_format": "html5", } diff --git a/themes/blue-penguin/static/css/screen.css b/themes/blue-penguin/static/css/screen.css index 7e04c06..66c492c 100644 --- a/themes/blue-penguin/static/css/screen.css +++ b/themes/blue-penguin/static/css/screen.css @@ -169,7 +169,7 @@ a { } a:hover { - box-shadow: inset 800px 0 0 0 var(--link-background-color); + box-shadow: inset 1000px 0 0 0 var(--link-background-color); } ul { @@ -204,6 +204,10 @@ h2 { font-size: 1.7em; } +h2 a { + text-decoration: none; +} + h3 { font-size: 1.5em; }