hugo-book
This commit is contained in:
7
themes/hugo-book/layouts/shortcodes/details.html
Normal file
7
themes/hugo-book/layouts/shortcodes/details.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<details {{ if or (.Get "open") (in .Params "open") }}open{{ end }}>
|
||||
{{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}
|
||||
<summary>{{ $summary | .Page.RenderString }}</summary>
|
||||
<div class="markdown-inner">
|
||||
{{ .Inner | .Page.RenderString }}
|
||||
</div>
|
||||
</details>
|
||||
Reference in New Issue
Block a user