2023-07-27 14:14:55 +00:00
|
|
|
{{- $page := .page }}
|
|
|
|
{{- if and (not $page) .context }}
|
|
|
|
{{- $page = .context }}
|
2024-09-14 23:23:35 +00:00
|
|
|
{{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'tab' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes/5/#5180" $page.File.Filename }}
|
2023-07-27 14:14:55 +00:00
|
|
|
{{- 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
|
|
|
|
)) }}
|
2023-05-23 21:57:48 +00:00
|
|
|
{{- partial "shortcodes/tabs.html" (dict
|
2023-07-27 14:14:55 +00:00
|
|
|
"page" $page
|
2023-06-05 21:18:12 +00:00
|
|
|
"color" ""
|
|
|
|
"content" $tabs
|
2023-05-23 21:57:48 +00:00
|
|
|
"groupid" ""
|
2023-06-05 21:18:12 +00:00
|
|
|
"icon" ""
|
|
|
|
"style" ""
|
|
|
|
"title" ""
|
2023-05-23 21:57:48 +00:00
|
|
|
) }}
|