aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.toml3
-rw-r--r--layouts/index.json5
2 files changed, 8 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 7294f53..cc41e95 100644
--- a/config.toml
+++ b/config.toml
@@ -29,6 +29,9 @@ resampleFilter = "CatmullRom"
quality = 75
anchor = "smart"
+[outputs]
+home = ["HTML", "RSS", "JSON"]
+
[params]
copyright = "Julien (Adyxax) Dessaux"
github_repo = "https://git.adyxax.org/adyxax/www"
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 -}}