Auto-generate ID for tabs (#649)

This commit is contained in:
Gram
2024-10-01 22:14:16 +02:00
committed by GitHub
parent b25c58878c
commit 460d44479b
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
{{ if .Inner }}{{ end }}
{{ $id := .Get 0 }}
{{ $group := printf "tabs-%s" $id }}
{{ $group := printf "tabs-%d" .Ordinal }}
<div class="book-tabs">
{{- range $index, $tab := .Scratch.Get $group -}}