aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.json
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-15 19:43:38 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-15 19:43:38 +0200
commita7fed26337081ae0edbe84c769af21a409536cf3 (patch)
tree792cc6ba5e161b617b1f6c30eb79de368f2cfbff /layouts/index.json
parent8c1cb6a102110a7a10e743c458293723c17558b9 (diff)
downloadhugo-minimalist-theme-a7fed26337081ae0edbe84c769af21a409536cf3.tar.gz
hugo-minimalist-theme-a7fed26337081ae0edbe84c769af21a409536cf3.tar.bz2
hugo-minimalist-theme-a7fed26337081ae0edbe84c769af21a409536cf3.zip
Import search
https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae
Diffstat (limited to 'layouts/index.json')
-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..c93f805
--- /dev/null
+++ b/layouts/index.json
@@ -0,0 +1,5 @@
+{{- $.Scratch.Add "index" slice -}}
+{{- range .Site.RegularPages -}}
+ {{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}}
+{{- end -}}
+{{- $.Scratch.Get "index" | jsonify -}}