let numbered plugin count nested headings

This commit is contained in:
Alex Shpak
2024-10-04 15:35:02 +02:00
parent 15c85acfcd
commit a5fdf88017
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
{{ if .Inner }}{{ end }}
{{ $group := printf "tabs-%d" .Ordinal }}
{{- if .Inner }}{{ end -}}
{{- $group := printf "tabs-%d" .Ordinal -}}
<div class="book-tabs">
{{- range $index, $tab := .Scratch.Get $group -}}