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

22 lines
636 B
HTML
Raw Normal View History

{{- $page := .page }}
{{- if and (not $page) .context }}
{{- $page = .context }}
2024-09-29 21:54:17 +00:00
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tab' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/5/#5-18-0" $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" ""
) }}