fix(srcatch): fix srcatch bugs
This commit is contained in:
6
layouts/shortcodes/echarts.html
Normal file
6
layouts/shortcodes/echarts.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{- $scratch := .Page.Scratch.Get "scratch" -}}
|
||||
|
||||
{{- $content := .Inner | transform.Unmarshal | jsonify -}}
|
||||
{{- $id := partial "function/id.html" (dict "content" $content "scratch" $scratch) -}}
|
||||
<div class="echarts" id="{{ $id }}"></div>
|
||||
{{- slice $id | $scratch.Add "echartsArr" -}}
|
||||
Reference in New Issue
Block a user