mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
15 lines
No EOL
452 B
HTML
15 lines
No EOL
452 B
HTML
{{- $_hugo_config := `{ "version": 1 }` }}
|
|
{{- $version := split hugo.Version "." }}
|
|
{{- $major := int (index $version 0) }}
|
|
{{- $minor := int (index $version 1) }}
|
|
{{- $id := "" }}
|
|
{{- if and (ge $major 0) (ge $major 108) }}
|
|
{{- $id = .Ordinal }}
|
|
{{- end }}
|
|
{{- partial "shortcodes/expand.html" (dict
|
|
"context" .Page
|
|
"content" .Inner
|
|
"open" (.Get "open" | default (.Get 1))
|
|
"title" (.Get "title" | default (.Get 0))
|
|
"id" $id
|
|
) }} |