diff options
author | Michael Romero <halogenica@users.noreply.github.com> | 2021-01-06 10:52:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 10:52:44 +0300 |
commit | bb834b9062234e6a2efeff9e92b31f126dfe0846 (patch) | |
tree | fd2d57bfd06a4d567d4983877abe8101b0512ea0 | |
parent | 5ea894faa9114ecaa4d516eaa9fc072da032d19b (diff) | |
parent | ea2c1187c7665a6eac95da270fb9875c75d0d3f8 (diff) |
Merge pull request #323 from henryiii/details060
Fix details for Hugo 0.60+
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | layouts/shortcodes/details.html | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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: ``` -{{% 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). -{{% /details %}} +{{< /details >}} ``` #### Split diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html index 3410075..a8ad297 100644 --- a/layouts/shortcodes/details.html +++ b/layouts/shortcodes/details.html @@ -1,3 +1,3 @@ -<details><summary>{{ .Get 0 }}</summary> -{{ .Inner }} +<details><summary>{{ .Get 0 | markdownify }}</summary> +{{ .Inner | markdownify }} </details> |