feat(image): add image lightgallery

This commit is contained in:
Dillon
2020-02-24 17:00:39 +08:00
parent fbfcbaebca
commit 72a2e9bdcf
50 changed files with 478 additions and 353 deletions

View File

@@ -1,4 +1,6 @@
<!-- shuffle md5 as id -->
{{- $scratch := .Page.Scratch.Get "scratch" -}}
{{- /* shuffle md5 as id */ -}}
{{- $id := delimit (split (md5 .Inner) "" | shuffle) "" | printf "echarts-%s" -}}
<div class="echarts" id="{{ $id }}"></div>
{{- .Page.Scratch.SetInMap "echartsMap" $id (printf "{%s}" .Inner) -}}
{{- $scratch.SetInMap "echartsMap" $id (printf "{%s}" .Inner) -}}