blob: 7b076fed67d2a80c121dd7a2bb00b02e455b1b5b (
plain)
1
2
3
4
5
6
7
|
{{ $size := index (dict "1" "text-4xl" "2" "text-2xl my-8" "3" "text-xl" "4" "text-lg" "5" "text-base" "6" "text-sm") (printf "%d" .Level) }}
<h{{ .Level }} id="{{ .Anchor }}"
class="{{ if eq .Level 2 }}font-extrabold{{ else }}font-bold{{ end }}
{{ $size }}
{{ with .Attributes.class }} {{ . }}{{ end }}">
{{- .Text -}}
</h{{ .Level }}>
|