Add details shortcode

This commit is contained in:
zhbaor 2022-12-12 23:29:45 +08:00
parent e361ac1ead
commit 51f8eda19a
2 changed files with 12 additions and 0 deletions

View file

@ -60,6 +60,14 @@ body{
}
overflow-wrap: break-word;
summary {
margin-bottom: 4px;
}
details {
margin-bottom: 16px;
}
}
.page{

View file

@ -0,0 +1,4 @@
<details>
<summary>{{ (.Get 0) | markdownify }}</summary>
{{ .Inner | markdownify }}
</details>