🔧 Add algolia search indexes content.
This commit is contained in:
12
layouts/_default/list.algoliaindexes.json
Normal file
12
layouts/_default/list.algoliaindexes.json
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{{- range $index, $entry := where .Site.RegularPages "Kind" "page" }}
|
||||
{{- if $index }}, {{ end }}
|
||||
{
|
||||
"permalink": "{{ .Permalink | relURL }}",
|
||||
"title": {{ .Title | jsonify }},
|
||||
"content": {{ replace .Plain | jsonify }},
|
||||
"date": {{ .Date.Format $.Site.Params.timeFormat | jsonify }},
|
||||
"updated": {{ .Lastmod.Format $.Site.Params.timeFormat | jsonify }}
|
||||
}
|
||||
{{- end }}
|
||||
]
|
||||
Reference in New Issue
Block a user