Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/halogenica/beautifulhugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Romero <halogenica@users.noreply.github.com>2021-01-06 10:52:44 +0300
committerGitHub <noreply@github.com>2021-01-06 10:52:44 +0300
commitbb834b9062234e6a2efeff9e92b31f126dfe0846 (patch)
treefd2d57bfd06a4d567d4983877abe8101b0512ea0
parent5ea894faa9114ecaa4d516eaa9fc072da032d19b (diff)
parentea2c1187c7665a6eac95da270fb9875c75d0d3f8 (diff)
Merge pull request #323 from henryiii/details060
Fix details for Hugo 0.60+
-rw-r--r--README.md4
-rw-r--r--layouts/shortcodes/details.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 2ba25bd..26fe826 100644
--- a/README.md
+++ b/README.md
@@ -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>