diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.json | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/index.json b/layouts/index.json index c93f805..b8559e7 100644 --- a/layouts/index.json +++ b/layouts/index.json @@ -1,5 +1,7 @@ {{- $.Scratch.Add "index" slice -}} {{- range .Site.RegularPages -}} +{{- if ne .Params.noindex true -}} {{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} {{- end -}} +{{- end -}} {{- $.Scratch.Get "index" | jsonify -}} |