mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
23 lines
No EOL
651 B
HTML
23 lines
No EOL
651 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 }}
|
|
{{- $params := dict }}
|
|
{{- with (.Get "class") }}
|
|
{{- $params = $params | merge (dict "class" .) }}
|
|
{{- end }}
|
|
{{- with (.Get "title") }}
|
|
{{- $params = $params | merge (dict "title" .) }}
|
|
{{- end }}
|
|
{{- partial "shortcodes/notice.html" (dict
|
|
"page" .Page
|
|
"content" .Inner
|
|
"expanded" $open
|
|
"groupid" (.Get "name")
|
|
"params" $params
|
|
"style" "transparent"
|
|
"title" $summary
|
|
) }} |