Start work on search feature with lunr
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
window.lunrData = [
|
||||
{{ range $index, $page := .Site.Pages }}
|
||||
{{- if and $index (gt $index 0) -}},{{- end }}
|
||||
{
|
||||
"href": "{{ $page.RelPermalink }}",
|
||||
"title": "{{ htmlEscape $page.Title }}",
|
||||
"content": {{ $page.Plain | jsonify }}
|
||||
}
|
||||
{{- end -}}
|
||||
]
|
||||
Reference in New Issue
Block a user