hugo-theme-relearn/layouts/shortcodes/tabs.html
Sören Weber a23eb3a9d8
Some checks failed
docs-build-deployment / Run deploy (push) Has been cancelled
docs-build / Run build (push) Has been cancelled
Revert "theme: remove .Scratch with .Store #948"
This reverts commit ab4197f311.
2024-11-19 10:18:49 +01:00

19 lines
No EOL
680 B
HTML

{{- $unused := .Inner }}
{{- $color := (.Get "color") }}
{{- $groupid := ((.Get "groupid") | default (.Get "groupId")) }}
{{- if (.Get "groupId") }}
{{- warnf "%q: DEPRECATED parameter 'groupId' for shortcode 'tabs' found, use 'groupid' instead; see https://mcshelby.github.io/hugo-theme-relearn/shortcodes/tabs#parameter" .Page.File.Filename }}
{{- end }}
{{- $icon := (.Get "icon") }}
{{- $style := (.Get "style") }}
{{- $title := (.Get "title") }}
{{- $tabs := (.Scratch.Get "tabs") }}
{{- partial "shortcodes/tabs.html" (dict
"page" .Page
"color" $color
"content" $tabs
"groupid" $groupid
"icon" $icon
"style" $style
"title" $title
) }}