runtimeterror/layouts/partials/search-index.html

17 lines
586 B
HTML
Raw Permalink Normal View History

2024-01-15 22:02:30 +00:00
<script>
window.store = {
{{ range where .Site.Pages "Section" "posts" }}
"{{ .Permalink }}": {
"title": "{{ .Title }}",
"tags": [{{ range .Params.Tags }}"{{ . }}",{{ end }}],
"content": {{ .Content | plainify }},
2024-01-16 00:12:56 +00:00
"description": {{ .Description | plainify }},
2024-01-15 22:02:30 +00:00
"url": "{{ .Permalink }}"
},
{{ end }}
}
</script>
{{ $jsLunr := resources.Get "js/lunr.js" | minify }}
2024-08-04 18:20:08 +00:00
<script src="{{ $jsLunr.RelPermalink }}" async></script>
2024-01-15 22:02:30 +00:00
{{ $jsSearch := resources.Get "js/search.js" | minify }}
2024-08-04 18:20:08 +00:00
<script src="{{ $jsSearch.RelPermalink }}" async></script>