Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.json « layouts - github.com/xaprb/story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52b514b9e3693e8ab5ec270d360ec974d2294f81 (plain)
1
2
3
4
5
{{- $.Scratch.Add "index" slice -}}
{{- range where .Site.Pages ".Params.skip" "ne" "true" -}}
{{- $.Scratch.Add "index" (dict "uri" .Permalink "title" (cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify)) "categories" .Params.categories "keywords" .Params.keywords "content" .Summary) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}