feat(search): add local search (#231)
* feat(search): add local search * docs: add docs for search
This commit is contained in:
13
layouts/partials/function/content.html
Normal file
13
layouts/partials/function/content.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- $content := . -}}
|
||||
|
||||
{{- $content = partial "function/ruby.html" $content -}}
|
||||
|
||||
{{- $content = partial "function/fraction.html" $content -}}
|
||||
|
||||
{{- $content = partial "function/fontawesome.html" $content -}}
|
||||
|
||||
{{- $content = partial "function/checkbox.html" $content -}}
|
||||
|
||||
{{- $content = partial "function/escape.html" $content -}}
|
||||
|
||||
{{- return $content -}}
|
||||
@@ -3,6 +3,6 @@
|
||||
{{- /* shuffle md5 as id */ -}}
|
||||
{{- $id := delimit (split (md5 now.Unix) "" | shuffle | first 6) "" | printf "id-%s" -}}
|
||||
{{- with .scratch -}}
|
||||
{{- .SetInMap "contentMap" $id $.content -}}
|
||||
{{- .SetInMap "contentData" $id $.content -}}
|
||||
{{- end -}}
|
||||
{{- return $id -}}
|
||||
|
||||
Reference in New Issue
Block a user