use jsonl (JSON lines) as format for index information

This commit is contained in:
Helmut Merz 2023-06-21 19:06:56 +02:00
parent ae0a5776ca
commit 6053135667
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +0,0 @@
{{- range .Site.RegularPages -}}
{{- $s := (dict "title" .Title "contents" .Plain "link" .Permalink) -}}
{{- jsonify (dict "noHTMLEscape" true) $s }}
{{ end -}}

View file

@ -0,0 +1,4 @@
{{- range .Site.RegularPages -}}
{{- $s := (dict "title" .Title "content" .Plain "link" .Permalink) -}}
{{- replace (jsonify (dict "noHTMLEscape" true) $s) "\\" "\\\\" }}
{{ end -}}