mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 19:06:16 +01:00
6 lines
268 B
HTML
6 lines
268 B
HTML
{{- $scratch := .Page.Scratch.Get "scratch" -}}
|
|
|
|
{{- /* shuffle md5 as id */ -}}
|
|
{{- $id := delimit (split (md5 .Inner) "" | shuffle) "" | printf "mermaid-%s" -}}
|
|
<div class="mermaid" id="{{ $id }}"></div>
|
|
{{- $scratch.SetInMap "mermaidMap" $id (trim .Inner "\n") -}}
|