mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-25 00:12:18 +00:00
16 lines
522 B
HTML
16 lines
522 B
HTML
|
<script>
|
||
|
window.store = {
|
||
|
{{ range where .Site.Pages "Section" "posts" }}
|
||
|
"{{ .Permalink }}": {
|
||
|
"title": "{{ .Title }}",
|
||
|
"tags": [{{ range .Params.Tags }}"{{ . }}",{{ end }}],
|
||
|
"content": {{ .Content | plainify }},
|
||
|
"url": "{{ .Permalink }}"
|
||
|
},
|
||
|
{{ end }}
|
||
|
}
|
||
|
</script>
|
||
|
{{ $jsLunr := resources.Get "js/lunr.js" | minify }}
|
||
|
<script src="{{ $jsLunr.RelPermalink }}"></script>
|
||
|
{{ $jsSearch := resources.Get "js/search.js" | minify }}
|
||
|
<script src="{{ $jsSearch.RelPermalink }}"></script>
|