mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-13 07:13:29 +00:00
23 lines
No EOL
744 B
HTML
23 lines
No EOL
744 B
HTML
{{- $page := .page }}
|
|
{{- if and (not $page) .context }}
|
|
{{- $page = .context }}
|
|
{{- $filepath := "[virtual file]" }}{{ with and $page $page.File $page.File.Filename }}{{ $filepath = . }}{{ end }}
|
|
{{- 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" $filepath }}
|
|
{{- 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" ""
|
|
) }} |