This commit is contained in:
2026-05-25 22:53:28 +02:00
parent 77ff06348a
commit e1fe3e1bc5
96 changed files with 18132 additions and 590 deletions

View File

@@ -0,0 +1,7 @@
{{ $class := "" }}
{{ if findRE "^(?:\\d+\\.)+\\s+" .Text 1 }}
{{ $class = "manual-number" }}
{{ end }}
<h{{ .Level }} id="{{ .Anchor | safeURL }}"{{ with $class }} class="{{ . }}"{{ end }}>
{{ .Text | safeHTML }}
</h{{ .Level }}>

View File

@@ -0,0 +1,20 @@
{{- $alt := .Text -}} {{- $src := .Destination -}} {{- $title := .Title -}}
<figure>
<img
src="{{ $src }}"
alt="{{ $alt }}"
loading="lazy"
{{
with
$title
}}
title="{{ . }}"
{{
end
}}
/>
{{- with $alt }}
<figcaption>{{ . }}</figcaption>
{{ end -}}
</figure>