{{- .Page.Scratch.Add "tabset-counter" 1 -}} {{- $tabs := .Scratch.Get "tabs" -}} {{- $col_id := .Get "color" | default "white" -}} {{- $tab_set_id := .Get "name" | default (printf "tabset-%s-%d" (.Page.RelPermalink) (.Page.Scratch.Get "tabset-counter") ) | anchorize -}} {{- $class := .Get "class" | default ""}} {{- if .Inner -}}{{- end -}}
{{- range $i, $e := $tabs -}} {{- $id := printf "%s-%d" $tab_set_id $i -}}
{{- with .content -}} {{- . -}} {{- end -}}
{{- end -}}