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

github.com/frjo/hugo-theme-zen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/shortcodes/details.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html
new file mode 100644
index 0000000..e308042
--- /dev/null
+++ b/layouts/shortcodes/details.html
@@ -0,0 +1,6 @@
+{{ $class := .Get "class" -}}
+{{ $summary := .Get "summary" -}}
+<details{{ with $class }} class="{{ . }}"{{ end }}>
+{{ with $summary }}<summary>{{ . }}</summary>{{ end }}
+{{ .Inner | markdownify }}
+</details>