From d6e98b9744fb8af2efbd6b202b68a0c353add5ca Mon Sep 17 00:00:00 2001 From: Casual Date: Sat, 27 Apr 2024 21:34:16 +0300 Subject: [PATCH] spoiler test --- content/productivity/HowTo_create_habit.md | 13 +++++++++++++ layouts/shortcodes/spoiler.html | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 content/productivity/HowTo_create_habit.md create mode 100644 layouts/shortcodes/spoiler.html diff --git a/content/productivity/HowTo_create_habit.md b/content/productivity/HowTo_create_habit.md new file mode 100644 index 0000000..ba856de --- /dev/null +++ b/content/productivity/HowTo_create_habit.md @@ -0,0 +1,13 @@ ++++ +title = 'HowTo create habit' +date = 2024-04-27 ++++ + + +{{< rawhtml >}} +
+ Details + Something small enough to escape casual notice. +asd +
+{{}} diff --git a/layouts/shortcodes/spoiler.html b/layouts/shortcodes/spoiler.html new file mode 100644 index 0000000..7ca91a6 --- /dev/null +++ b/layouts/shortcodes/spoiler.html @@ -0,0 +1,19 @@ + +
+
+ {{ if (.Get "text") }} +

{{ with .Get "text" }}{{ . | safeHTML }}{{ else }} {{ end }}

+ {{ end }} + +click to show + +{{ if .Inner }} + +{{ end }} + +
+