mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-23 17:39:49 +01:00
13 lines
416 B
HTML
13 lines
416 B
HTML
{{ if .Get "content" }}
|
|
{{ if .Get "summary" }}
|
|
{{ else }}
|
|
{{ warnf "missing value for param 'summary': %s" .Position }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ errorf "missing value for param 'content': %s" .Position }}
|
|
{{ end }}
|
|
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
|
|
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
|
|
{{ .Get "content" | markdownify }}
|
|
</details></p>
|