👷 Upgrade Algolia search indexes with objectID.
This commit is contained in:
parent
9f2b1f37f8
commit
bebd279735
@ -2,9 +2,10 @@
|
||||
{{- range $index, $entry := where .Site.RegularPages "Kind" "page" }}
|
||||
{{- if $index }}, {{ end }}
|
||||
{
|
||||
"objectID": "{{ .Date.Unix }}",
|
||||
"permalink": "{{ .Permalink | relURL }}",
|
||||
"title": {{ .Title | jsonify }},
|
||||
"content": {{ .Plain | jsonify }},
|
||||
"content": {{ .Plain | jsonify | safeJS }},
|
||||
"date": {{ .Date.Format $.Site.Params.timeFormat | jsonify }},
|
||||
"updated": {{ .Lastmod.Format $.Site.Params.timeFormat | jsonify }}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user