hugo-theme-relearn/layouts/shortcodes/tabs.html

19 lines
603 B
HTML
Raw Normal View History

{{- $unused := .Inner }}
2023-06-05 21:18:12 +00:00
{{- $color := (.Get "color") }}
{{- $groupid := ((.Get "groupid") | default (.Get "groupId")) }}
{{- if (.Get "groupId") }}
{{- warnf "%q: DEPRECATED parameter 'groupId' for shortcode 'tabs' found, use 'groupid' instead" .Page.File.Filename }}
{{- end }}
2023-06-05 21:18:12 +00:00
{{- $icon := (.Get "icon") }}
{{- $style := (.Get "style") }}
{{- $title := (.Get "title") }}
{{- $tabs := (.Scratch.Get "tabs") }}
{{- partial "shortcodes/tabs.html" (dict
"page" .Page
2023-06-05 21:18:12 +00:00
"color" $color
"content" $tabs
"groupid" $groupid
2023-06-05 21:18:12 +00:00
"icon" $icon
"style" $style
"title" $title
) }}