hugo-theme-relearn/layouts/partials/shortcodes/tab.html

22 lines
622 B
HTML
Raw Normal View History

{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
2023-11-20 23:53:33 +00:00
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tab' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5180" $page.File.Filename }}
{{- end }}
2023-06-05 21:18:12 +00:00
{{- $tabs := (slice | append (dict
"color" .color
"content" .content
"icon" .icon
"name" .name
"style" .style
"title" .title
)) }}
{{- partial "shortcodes/tabs.html" (dict
"page" $page
2023-06-05 21:18:12 +00:00
"color" ""
"content" $tabs
"groupid" ""
2023-06-05 21:18:12 +00:00
"icon" ""
"style" ""
"title" ""
) }}