mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
90184ca3e7
* feat(search): add local search * docs: add docs for search
8 lines
276 B
HTML
8 lines
276 B
HTML
{{- /* ID */ -}}
|
|
{{- /* Content -> unique ID */ -}}
|
|
{{- /* shuffle md5 as id */ -}}
|
|
{{- $id := delimit (split (md5 now.Unix) "" | shuffle | first 6) "" | printf "id-%s" -}}
|
|
{{- with .scratch -}}
|
|
{{- .SetInMap "contentData" $id $.content -}}
|
|
{{- end -}}
|
|
{{- return $id -}}
|