culinary.kemonine.info/themes/hugo-cuisine-book/assets/search-data.json

14 lines
497 B
JSON
Raw Normal View History

2022-12-03 15:27:03 +00:00
[
{{- $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 -}}
]