diff options
author | hyang <hyang@hyang.xyz> | 2023-09-14 22:26:08 -0700 |
---|---|---|
committer | hyang <hyang@hyang.xyz> | 2023-09-14 22:26:08 -0700 |
commit | 2dd30bb17193990ceb3ea8a0074fc222a5b0a5a3 (patch) | |
tree | 1d2156e8a77d7e16759b758aede98493c2170a00 /index.json | |
parent | d2eee3b79256166802729f576227dcb01d5d6556 (diff) |
Fix searching
Diffstat (limited to 'index.json')
-rw-r--r-- | index.json | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/index.json b/index.json new file mode 100644 index 0000000..feeb437 --- /dev/null +++ b/index.json @@ -0,0 +1,7 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range site.RegularPages -}} + {{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }} + {{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}} + {{- end }} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} |