garden/themes/cortex/layouts/partials/search-index.html
SouthFox 08db36282d
All checks were successful
continuous-integration/drone Build is passing
new init
2023-05-20 19:32:59 +08:00

22 lines
818 B
HTML

<!-- <script>
window.store = {
// You can specify your blog section only:
{{ range .Site.Pages }}
// For all pages in your site, use "range .Site.Pages"
// You can use any unique identifier here
"{{ .Permalink }}": {
// You can customize your searchable fields using any .Page parameters
"title": "{{ .Title }}",
"tags": [{{ range .Params.Tags }}"{{ . }}",{{ end }}],
"content": {{ .Content | plainify }}, // Strip out HTML tags
"url": "{{ .Permalink }}"
},
{{ end }}
}
</script>
{{ $lunrjs := resources.Get "js/lunr.min.js" }}
<script src="{{$lunrjs.Permalink}}" type="text/javascript"></script>
{{ $searchjs := resources.Get "js/search.js" }}
<script src="{{$searchjs.Permalink}}" type="text/javascript"></script> -->