feat: support collapsible block

This commit is contained in:
yuweizzz
2023-09-11 22:55:32 +08:00
parent eee158a658
commit 7ba583ae41
2 changed files with 25 additions and 0 deletions

View File

@@ -193,6 +193,25 @@ pygmentsUseClasses = true
``` ```
## Support collapsible block
You can create a collapsible block like this:
```
{{<details "summary title">}}
block content
{{</details>}}
```
And it will show like this:
<details>
<summary>summary title</summary>
<p>block content</p>
</details>
## deploy.sh example ## deploy.sh example
There are various way to deploy to github, here is a link to official [document](https://gohugo.io/hosting-and-deployment/hosting-on-github/). There are various way to deploy to github, here is a link to official [document](https://gohugo.io/hosting-and-deployment/hosting-on-github/).

View File

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