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

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2022-05-06 20:20:39 +0300
committerDillon <dillonzq@outlook.com>2022-05-06 20:20:39 +0300
commit28bc034af012570e59d90718c4c19c58c8d3ad2a (patch)
tree6c6ebeb7d1042e437f953fab7b5264f2762f279b /layouts
parenteb924ead826594e8a6b20617353a2ebfc5fde124 (diff)
fix: raw shortcode content rendering in another shortcode
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/raw.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/shortcodes/raw.html b/layouts/shortcodes/raw.html
index 4e81aced..b55a496d 100644
--- a/layouts/shortcodes/raw.html
+++ b/layouts/shortcodes/raw.html
@@ -1 +1,2 @@
-{{- .Inner | safeHTML -}}
+{{- $id := dict "Content" .Inner "Scratch" .Page.Scratch | partial "function/id.html" -}}
+<data id="{{ $id }}" data-raw></data> \ No newline at end of file