mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-04 13:13:07 +00:00
15 lines
No EOL
421 B
HTML
15 lines
No EOL
421 B
HTML
{{- $summary := (.Get "summary") | default (T "Details") }}
|
|
{{- $open := false }}
|
|
{{- if in (slice "false" false 0) (.Get "open") }}
|
|
{{- $open = false }}
|
|
{{- else if in (slice "true" true 1) (.Get "open")}}
|
|
{{- $open = true }}
|
|
{{- end }}
|
|
{{- partial "shortcodes/notice.html" (dict
|
|
"page" .Page
|
|
"content" .Inner
|
|
"expanded" $open
|
|
"params" .Params
|
|
"style" "transparent"
|
|
"title" $summary
|
|
) }} |