mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
13 lines
No EOL
461 B
HTML
13 lines
No EOL
461 B
HTML
{{- $unused := .Inner }}
|
|
{{- $version := split hugo.Version "." }}
|
|
{{- $major := int (index $version 0) }}
|
|
{{- $minor := int (index $version 1) }}
|
|
{{- $groupid := ((.Get "groupid") | default ((.Get "groupId") | default "")) }}
|
|
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
|
|
{{- $groupid = $groupid | default "" }}
|
|
{{- end }}
|
|
{{- partial "shortcodes/tabs.html" (dict
|
|
"context" .Page
|
|
"groupid" $groupid
|
|
"content" (.Scratch.Get "tabs")
|
|
) }} |