Skip to content

Commit

Permalink
Fix index JSON content
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriadrake committed Sep 19, 2021
1 parent f0c3237 commit 449e273
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Pages -}}
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections -}}
{{- range $pages -}}
{{- $.Scratch.Add "index" (dict "uri" .Permalink "author" .Site.Author "site" .Site.BaseURL "title" .Title "date" .Date "content" .Plain "tags" .Params.tags "categories" .Params.tags) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}

0 comments on commit 449e273

Please sign in to comment.