{{ if not .Params.default }} {{ errorf "no default tab specified in tabs shortcode %s" .File }} {{ end }} {{ $default := .Params.default | urlize }}
{{ .Inner }}
{{ range $k, $v := $.Page.Scratch.Get "tabs" }}
{{ $v | $.Page.RenderString }}
{{ end }}
{{/* Reset Scratch for the "tabs" key, allowing for more than one tabs shortcode on a page */}} {{ $.Page.Scratch.Set "tabs" dict }}