hugo-theme-relearn/layouts/shortcodes/expand.html

14 lines
422 B
HTML
Raw Normal View History

{{- $version := split hugo.Version "." }}
{{- $major := int (index $version 0) }}
{{- $minor := int (index $version 1) }}
{{- $id := "" }}
2023-05-25 10:43:10 +00:00
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
{{- $id = "" }}
{{- end }}
{{- partial "shortcodes/expand.html" (dict
"context" .Page
"content" .Inner
"open" (.Get "open" | default (.Get 1))
"title" (.Get "title" | default (.Get 0))
"id" $id
) }}