mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-12-13 10:21:14 +01:00
10 lines
No EOL
442 B
HTML
10 lines
No EOL
442 B
HTML
<!-- shuffle md5 as id -->
|
|
{{- $id := delimit (split (md5 .Inner) "" | shuffle) "" | printf "echarts-%s" -}}
|
|
{{- $echartsMap := .Page.Scratch.Get "echartsMap" -}}
|
|
{{- if $echartsMap -}}
|
|
{{ $echartsMap = .Inner | printf "{%s}" | dict $id | merge $echartsMap -}}
|
|
{{- else -}}
|
|
{{ $echartsMap = .Inner | printf "{%s}" | dict $id -}}
|
|
{{- end -}}
|
|
{{- .Page.Scratch.Set "echartsMap" $echartsMap -}}
|
|
<div class="echarts" id="{{ $id }}"></div> |