2023-06-03 22:18:16 +00:00
|
|
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
2023-05-14 21:05:07 +00:00
|
|
|
{{- $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) }}
|
2023-05-25 13:45:57 +00:00
|
|
|
{{- $id = "" }}
|
2023-05-14 21:05:07 +00:00
|
|
|
{{- end }}
|
2022-06-22 18:32:18 +00:00
|
|
|
{{- partial "shortcodes/expand.html" (dict
|
2023-07-27 14:14:55 +00:00
|
|
|
"page" .Page
|
2022-06-22 18:32:18 +00:00
|
|
|
"content" .Inner
|
|
|
|
"open" (.Get "open" | default (.Get 1))
|
|
|
|
"title" (.Get "title" | default (.Get 0))
|
2023-05-14 21:05:07 +00:00
|
|
|
"id" $id
|
2022-06-22 18:32:18 +00:00
|
|
|
) }}
|