aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorJulien Dessaux2021-08-23 19:32:05 +0200
committerJulien Dessaux2021-08-23 19:32:05 +0200
commit8df90589bf62d633eb1f0c1e6d4fc50445628923 (patch)
tree6c9d40b8f0f528e7e90bbef28a15218f61ddb119 /layouts
parentAdded wireguard docs article for alpine (diff)
downloadwww-8df90589bf62d633eb1f0c1e6d4fc50445628923.tar.gz
www-8df90589bf62d633eb1f0c1e6d4fc50445628923.tar.bz2
www-8df90589bf62d633eb1f0c1e6d4fc50445628923.zip
Make hugo generate a json index of the website
Diffstat (limited to '')
-rw-r--r--layouts/index.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/index.json b/layouts/index.json
new file mode 100644
index 0000000..a526e68
--- /dev/null
+++ b/layouts/index.json
@@ -0,0 +1,5 @@
+{{- $.Scratch.Add "index" slice -}}
+{{- range .Site.RegularPages -}}
+ {{- $.Scratch.Add "index" (dict "title" .Title "subtitle" .Params.subtitle "description" .Params.description "tags" .Params.tags "content" .Plain "permalink" .Permalink) -}}
+{{- end -}}
+{{- $.Scratch.Get "index" | jsonify -}}