From 893346149c2b3a965656a07f0c3316f14e22575e Mon Sep 17 00:00:00 2001 From: thomas <18520168+yaythomas@users.noreply.github.com> Date: Sun, 24 Mar 2024 11:54:17 -0700 Subject: [PATCH] add search index --- layouts/_default/list.searchindex.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 layouts/_default/list.searchindex.json diff --git a/layouts/_default/list.searchindex.json b/layouts/_default/list.searchindex.json new file mode 100644 index 0000000..2cb7040 --- /dev/null +++ b/layouts/_default/list.searchindex.json @@ -0,0 +1,18 @@ +[ + {{- range $i, $page := .Site.AllPages -}} + {{- if ne $i 0 }},{{ end }} + { + "objectID": {{ .Permalink | jsonify }}, + "relLink": {{ .RelPermalink | jsonify }}, + "linkTitle": {{ .LinkTitle | jsonify }}, + "title": {{ .Title | jsonify }}, + "description": {{ .Description | jsonify }}, + "seoTitle": {{ .Param "seo_article_headline" | jsonify }}, + "seoDescription": {{ .Param "seo_description" | jsonify }}, + "keywords": {{ .Param "keywords" | jsonify }}, + "topics": {{ .Param "topics" | jsonify }}, + "categories": {{ .Param "categories" | jsonify }}, + "date": {{ .Param "date" | jsonify }} + } + {{- end -}} +]