Merge pull request #124 from yuweizzz/feat-details

feat: support collapsible block
This commit is contained in:
MeiK
2023-09-18 10:59:04 +08:00
committed by GitHub
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
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>