all repos — h3rald @ 057efd5010f85392b61ee61e102367b3ad1a811e

The sources of https://h3rald.com

TOC improvements.
h3rald h3rald@h3rald.com
Sat, 16 Mar 2024 18:54:24 +0100
commit

057efd5010f85392b61ee61e102367b3ad1a811e

parent

48549cfc4927b84af3f1fec38b4f6b9e49f5a0e4

M assets/styles/style.cssassets/styles/style.css

@@ -706,16 +706,17 @@ display: block;

visibility: hidden; } -.go2toc: { +.go2top { font-size: 80%; vertical-align: super; +} #toc { - padding-left: 1rem; + padding-left: 2rem; } -#toc ul { - list-style-type: none; +#toc li { + list-style-type: none; } /* Used only in Glyph Book */
M rules.minrules.min

@@ -203,7 +203,7 @@ {}

title %title id %id headings append @headings - "<a class='heading-anchor' id='$1'></a><h3>$2 <a class='go2toc' href='#toc'>⇈</a></h3>" (id title) =% + "<a class='heading-anchor' id='$1'></a><h3>$2 <a class='go2top' href='#top' title='Go to the top'>⇈</a></h3>" (id title) =% ) replace-apply @result (headings size 3 >=) (
M templates/article.mustachetemplates/article.mustache

@@ -1,7 +1,7 @@

<!DOCTYPE html> <html lang="en"> {{> _head}} - <body> + <body id="top"> {{> _theme_switcher}} <div class="main container-fluid themed-content"> <div class="row header">
M templates/grimoire.mustachetemplates/grimoire.mustache

@@ -1,7 +1,7 @@

<!DOCTYPE html> <html lang="en"> {{> _head}} - <body> + <body id="top"> {{> _theme_switcher}} <div class="main container-fluid themed-content"> <div class="row header">
M templates/home.mustachetemplates/home.mustache

@@ -1,7 +1,7 @@

<!DOCTYPE html> <html lang="en"> {{> _head}} - <body> + <body id="top"> {{> _theme_switcher}} <div class="main container-fluid themed-content"> {{> _header}}
M templates/page.mustachetemplates/page.mustache

@@ -1,7 +1,7 @@

<!DOCTYPE html> <html lang="en"> {{> _head}} - <body> + <body id="top"> {{> _theme_switcher}} <div class="main container-fluid themed-content"> <div class="row header">
M templates/project.mustachetemplates/project.mustache

@@ -1,7 +1,7 @@

<!DOCTYPE html> <html lang="en"> {{> _head}} - <body> + <body id="top"> {{> _theme_switcher}} <div class="main container-fluid themed-content"> <div class="row header">
M templates/projects.mustachetemplates/projects.mustache

@@ -1,7 +1,7 @@

<!DOCTYPE html> <html lang="en"> {{> _head}} - <body> + <body id="top"> {{> _theme_switcher}} <div class="main container-fluid themed-content"> <div class="row header">