Turn titles into links

This commit is contained in:
Pascal Le Merrer 2026-04-22 10:59:19 +02:00
parent da7210d5ce
commit 5c804816b0
3 changed files with 10 additions and 2 deletions

4
content/images/link.svg Normal file
View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M14 12C14 14.7614 11.7614 17 9 17H7C4.23858 17 2 14.7614 2 12C2 9.23858 4.23858 7 7 7H7.5M10 12C10 9.23858 12.2386 7 15 7H17C19.7614 7 22 9.23858 22 12C22 14.7614 19.7614 17 17 17H16.5" stroke="#000000" stroke-width="2" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 484 B

View file

@ -44,7 +44,7 @@ MARKDOWN = {
"markdown.extensions.codehilite": {"css_class": "highlight"}, "markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.extra": {}, "markdown.extensions.extra": {},
"markdown.extensions.meta": {}, "markdown.extensions.meta": {},
"markdown.extensions.toc": {}, "markdown.extensions.toc": {"anchorlink": True},
}, },
"output_format": "html5", "output_format": "html5",
} }

View file

@ -169,7 +169,7 @@ a {
} }
a:hover { 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 { ul {
@ -204,6 +204,10 @@ h2 {
font-size: 1.7em; font-size: 1.7em;
} }
h2 a {
text-decoration: none;
}
h3 { h3 {
font-size: 1.5em; font-size: 1.5em;
} }