Merge pull request #323 from henryiii/details060

Fix details for Hugo 0.60+
This commit is contained in:
Michael Romero 2021-01-05 23:52:44 -08:00 committed by GitHub
commit bb834b9062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -158,9 +158,9 @@ There are two extra shortcodes provided (along with the customized figure shortc
This simply adds the html5 detail attribute, supported on all *modern* browsers. Use it like this: This simply adds the html5 detail attribute, supported on all *modern* browsers. Use it like this:
``` ```
{{% details "This is the details title (click to expand)" %}} {{< details "This is the details title (click to expand)" >}}
This is the content (hidden until clicked). This is the content (hidden until clicked).
{{% /details %}} {{< /details >}}
``` ```
#### Split #### Split

View File

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