mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-21 14:32:19 +00:00
17 lines
No EOL
586 B
HTML
17 lines
No EOL
586 B
HTML
<script>
|
|
window.store = {
|
|
{{ range where .Site.Pages "Section" "posts" }}
|
|
"{{ .Permalink }}": {
|
|
"title": "{{ .Title }}",
|
|
"tags": [{{ range .Params.Tags }}"{{ . }}",{{ end }}],
|
|
"content": {{ .Content | plainify }},
|
|
"description": {{ .Description | plainify }},
|
|
"url": "{{ .Permalink }}"
|
|
},
|
|
{{ end }}
|
|
}
|
|
</script>
|
|
{{ $jsLunr := resources.Get "js/lunr.js" | minify }}
|
|
<script src="{{ $jsLunr.RelPermalink }}" async></script>
|
|
{{ $jsSearch := resources.Get "js/search.js" | minify }}
|
|
<script src="{{ $jsSearch.RelPermalink }}" async></script> |