all repos — h3rald @ 2297c9d0df59ae683d66595ff3a32c15e5b67073

The sources of https://h3rald.com

Merge branch 'v10' of git@github.com:h3rald/h3rald.git
h3rald h3rald@h3rald.com
Sat, 16 Mar 2024 19:35:32 +0100
commit

2297c9d0df59ae683d66595ff3a32c15e5b67073

parent

9b40a65613f396e9da8ea38609cbc25e643c6e57

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

@@ -701,21 +701,22 @@ }

.heading-anchor { position: relative; - top: -50px; + top: -70px; display: block; visibility: hidden; } -.go2toc: { +.go2top { font-size: 80%; vertical-align: super; +} #toc { padding-left: 1rem; } -#toc ul { - list-style-type: none; +#toc li { + list-style-type: none; } /* Used only in Glyph Book */
M rules.minrules.min

@@ -196,15 +196,14 @@ (

() :headings text "<h3[^>]*>([^<]+)</h3>" ( :matches - matches 1 get :level - matches 2 get :title + matches 1 get :title title "[^a-zA-Z0-9_-]" "_" replace :id "heading__$#" (id) =% @id {} title %title id %id headings append @headings - "<a class='heading-anchor' id='$2'></a><h$1>$3 <a class='go2toc' href='#toc'>⇈</a></h$1>" (level 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">