diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-17 10:25:29 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-17 10:25:29 +0800 |
| commit | 8528497b0739e9e633aea1bfd49c859914cb9e12 (patch) | |
| tree | 9fb2e0dac567b14cb3e2e562044a99781c3da3b2 /layouts/_markup/render-heading.html | |
| parent | 0e1ff20e27a5fc427c74717d16bebbe7d774479d (diff) | |
feat: larger margin of headings
Former-commit-id: 1160eda3a7de8ffaf1562e65187cec783081d491
Diffstat (limited to 'layouts/_markup/render-heading.html')
| -rw-r--r-- | layouts/_markup/render-heading.html | 6 |
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 }}> |
