Merge pull request #323 from henryiii/details060
Fix details for Hugo 0.60+
This commit is contained in:
commit
bb834b9062
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<details><summary>{{ .Get 0 }}</summary>
|
<details><summary>{{ .Get 0 | markdownify }}</summary>
|
||||||
{{ .Inner }}
|
{{ .Inner | markdownify }}
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user