feat(image): add image lightgallery
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
{{- $scratch := .Page.Scratch.Get "scratch" -}}
|
||||
|
||||
{{- /* shuffle md5 as id */ -}}
|
||||
{{- $id := delimit (split (md5 .Inner) "" | shuffle) "" | printf "mermaid-%s" -}}
|
||||
<div class="mermaid" id="{{ $id }}"></div>
|
||||
{{- .Page.Scratch.SetInMap "mermaidMap" $id (trim .Inner "\n") -}}
|
||||
{{- $scratch.SetInMap "mermaidMap" $id (trim .Inner "\n") -}}
|
||||
|
||||
Reference in New Issue
Block a user