{{- .Page.Scratch.Add "tabset-counter" 1 -}} {{- $tabPaneOrdinal := .Get "name" | default (printf "tabset-%s-%d" (.Page.RelPermalink) (.Page.Scratch.Get "tabset-counter") ) | anchorize -}} {{- $tabs := .Scratch.Get "tabs" -}} {{- if .Inner -}}{{- /* We don't use the inner content, but Hugo will complain if we don't reference it. */ -}}{{- end -}} {{- $isActiveTab := false -}} {{- $activeWasSet := false -}} {{- $persistTab := false -}} {{- $tpPersistAttrName := "data-td-tp-persist" -}} {{- $persistKey := "" -}}