Hugo Dark Theme Site Generator https://after-dark.habd.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.json 365B

12345678
  1. {{- $scratch := newScratch -}}
  2. {{- $scratch.Add "index" slice -}}
  3. {{- range .Site.RegularPages -}}
  4. {{- if ne .Params.noindex true -}}
  5. {{- $scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "url" .RelPermalink "summary" .Summary) -}}
  6. {{- end -}}
  7. {{- end -}}
  8. {{- $scratch.Get "index" | jsonify -}}