summaryrefslogtreecommitdiff
path: root/layouts/_markup/render-heading.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-17 10:25:29 +0800
committerEltrac <hi@guhub.cn>2025-07-17 10:25:29 +0800
commit1160eda3a7de8ffaf1562e65187cec783081d491 (patch)
tree9fb2e0dac567b14cb3e2e562044a99781c3da3b2 /layouts/_markup/render-heading.html
parentb01c58d9bb80f117d1181eb1d3b0b126ed0e7b44 (diff)
feat: larger margin of headings
Diffstat (limited to 'layouts/_markup/render-heading.html')
-rw-r--r--layouts/_markup/render-heading.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_markup/render-heading.html b/layouts/_markup/render-heading.html
index b93a9aad..7b076fed 100644
--- a/layouts/_markup/render-heading.html
+++ b/layouts/_markup/render-heading.html
@@ -1,5 +1,7 @@
-{{ $size := index (dict "1" "text-4xl" "2" "text-2xl" "3" "text-xl" "4" "text-lg" "5" "text-base" "6" "text-sm") (printf "%d" .Level) }}
+{{ $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 }} my-5 {{ $size }}{{ with .Attributes.class }} {{ . }}{{ end }}">
+ class="{{ if eq .Level 2 }}font-extrabold{{ else }}font-bold{{ end }}
+ {{ $size }}
+ {{ with .Attributes.class }} {{ . }}{{ end }}">
{{- .Text -}}
</h{{ .Level }}>