culinary.kemonine.info/themes/hugo-cuisine-book/assets/search-data.json
2022-12-03 10:27:03 -05:00

14 lines
497 B
JSON

[
{{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}}
{{- $pages = where $pages "Params.booksearchexclude" "!=" true -}}
{{- $pages = where $pages "Content" "not in" (slice nil "") -}}
{{ range $index, $page := $pages }}
{{ if gt $index 0}},{{end}} {
"id": {{ $index }},
"href": "{{ $page.RelPermalink }}",
"title": "{{ $page.Title }}",
"tags": [{{ range $page.Params.Tags }}"{{ . }}",{{ end }}]
}
{{- end -}}
]