diff options
author | Dillon <dillonzq@outlook.com> | 2022-05-06 20:20:39 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2022-05-06 20:20:39 +0300 |
commit | 28bc034af012570e59d90718c4c19c58c8d3ad2a (patch) | |
tree | 6c6ebeb7d1042e437f953fab7b5264f2762f279b /layouts | |
parent | eb924ead826594e8a6b20617353a2ebfc5fde124 (diff) |
fix: raw shortcode content rendering in another shortcode
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/raw.html | 3 |
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 |