Introduce landing page and card shortcode

This commit is contained in:
Alex Shpak
2025-08-09 00:56:37 +02:00
parent b3322d7bae
commit 47223753a2
14 changed files with 231 additions and 60 deletions
+5 -3
View File
@@ -1,4 +1,6 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | safeHTML }}
<a class="anchor" href="#{{ .Anchor | safeURL }}">#</a>
<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
{{ .Text }}
{{ if default true .Page.Params.bookHeadingAnchor }}
<a class="anchor" href="#{{ .Anchor }}">#</a>
{{ end }}
</h{{ .Level }}>