diff --git a/site/assets/css/main.css b/site/assets/css/main.css index 45182a9..9564b1e 100644 --- a/site/assets/css/main.css +++ b/site/assets/css/main.css @@ -272,3 +272,19 @@ h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--green-dark); } .collab-grid { grid-template-columns: 1fr; } .rtl-note { flex-direction: column; text-align: center; } } + +/* Anchor targets clear the sticky header */ +main > section[id], +.doc :is(h2, h3)[id] { scroll-margin-top: 5.5rem; } + +/* Discreet, hover-revealed heading permalinks (About + Legal) */ +.heading-anchor { + margin-inline-start: .35em; + color: var(--green); + text-decoration: none; + font-weight: 400; + opacity: 0; + transition: opacity .15s; +} +.doc :is(h2, h3):hover .heading-anchor, +.heading-anchor:focus { opacity: .6; } diff --git a/site/layouts/_default/_markup/render-heading.html b/site/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..ca6ec1e --- /dev/null +++ b/site/layouts/_default/_markup/render-heading.html @@ -0,0 +1,4 @@ + + {{ .Text | safeHTML }} + # + diff --git a/site/layouts/index.html b/site/layouts/index.html index 61df7db..74ae580 100644 --- a/site/layouts/index.html +++ b/site/layouts/index.html @@ -1,6 +1,6 @@ {{ define "main" }} {{ $lang := .Site.Language.Lang }} - + {{ .Params.hero.title }} {{ .Params.hero.tagline }} @@ -19,7 +19,7 @@ {{ end }} - + {{ T "statusBadge" }} {{ T "statusTitle" }} @@ -27,7 +27,7 @@ - + {{ range .Params.pillars }} {{ .icon }} @@ -38,7 +38,7 @@ {{ with .Params.features }} - + {{ .title }} {{ with .intro }}{{ . }}{{ end }} @@ -56,7 +56,7 @@ {{ end }} {{ $screens := slice "home" "inventory" "market" "calendar" "detail" }} - + {{ T "screenshotsTitle" }} {{ range $s := $screens }} @@ -81,14 +81,14 @@ {{ end }} - + {{ .Params.values.title }} {{ range .Params.values.points }}{{ . }}{{ end }} - + {{ T "faqTitle" }} {{ T "faqFreeQ" }}{{ T "faqFreeA" }} @@ -99,7 +99,7 @@ - + {{ T "collabTitle" }} {{ T "collabIntro" }}
{{ .Params.hero.tagline }}
{{ . }}
{{ T "collabIntro" }}