layouts: add spoiler shortcode
This commit is contained in:
parent
d20b6aed18
commit
370f40ef5a
2 changed files with 13 additions and 0 deletions
5
layouts/shortcodes/spoiler.html
Normal file
5
layouts/shortcodes/spoiler.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{{- $title := .Get "title" | default (.Get 0) -}}
|
||||
<details>
|
||||
<summary>{{ $title }}</summary>
|
||||
<p>{{.Inner}}</p>
|
||||
</details>
|
||||
Loading…
Add table
Add a link
Reference in a new issue