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
+1 -1
View File
@@ -9,5 +9,5 @@
{{- end -}}
{{- with .Inner }}
<span>\[ {{ . }} \]</span>
<span>\[ {{ .| htmlEscape | safeHTML }} \]</span>
{{ end -}}
+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 }}>