2021-09-12 07:44:34 +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-14 21:05:07 +00:00
|
|
|
{{- $id = .Ordinal }}
|
|
|
|
{{- end }}
|
2022-06-22 18:32:18 +00:00
|
|
|
{{- partial "shortcodes/expand.html" (dict
|
2023-05-18 12:01:50 +00:00
|
|
|
"context" .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
|
|
|
) }}
|