2023-06-04 00:18:16 +02:00
|
|
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
2023-05-14 23:05:07 +02:00
|
|
|
{{- $version := split hugo.Version "." }}
|
|
|
|
{{- $major := int (index $version 0) }}
|
|
|
|
{{- $minor := int (index $version 1) }}
|
|
|
|
{{- $id := "" }}
|
2023-05-25 12:43:10 +02:00
|
|
|
{{- if or (and (eq $major 0) (ge $minor 108)) (gt $major 0) }}
|
2023-05-25 15:45:57 +02:00
|
|
|
{{- $id = "" }}
|
2023-05-14 23:05:07 +02:00
|
|
|
{{- end }}
|
2022-06-22 20:32:18 +02:00
|
|
|
{{- partial "shortcodes/expand.html" (dict
|
2023-07-27 16:14:55 +02:00
|
|
|
"page" .Page
|
2022-06-22 20:32:18 +02:00
|
|
|
"content" .Inner
|
|
|
|
"open" (.Get "open" | default (.Get 1))
|
|
|
|
"title" (.Get "title" | default (.Get 0))
|
2023-05-14 23:05:07 +02:00
|
|
|
"id" $id
|
2022-06-22 20:32:18 +02:00
|
|
|
) }}
|