mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-12 08:54:08 +00:00
22 lines
No EOL
636 B
HTML
22 lines
No EOL
636 B
HTML
{{- $page := .page }}
|
|
{{- if and (not $page) .context }}
|
|
{{- $page = .context }}
|
|
{{- 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 }}
|
|
{{- $tabs := (slice | append (dict
|
|
"color" .color
|
|
"content" .content
|
|
"icon" .icon
|
|
"name" .name
|
|
"style" .style
|
|
"title" .title
|
|
)) }}
|
|
{{- partial "shortcodes/tabs.html" (dict
|
|
"page" $page
|
|
"color" ""
|
|
"content" $tabs
|
|
"groupid" ""
|
|
"icon" ""
|
|
"style" ""
|
|
"title" ""
|
|
) }} |