From a19b726625d74206b3a8e307722230d5ff265dec Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 29 Apr 2018 12:14:58 +0200 Subject: bulding json version of pages, added small offsite indexer and query test program (elasticlunr) --- layouts/index.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 layouts/index.json (limited to 'layouts') diff --git a/layouts/index.json b/layouts/index.json new file mode 100644 index 0000000..486116c --- /dev/null +++ b/layouts/index.json @@ -0,0 +1,5 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range where .Site.Pages "Type" "not in" (slice "page" "json") -}} +{{- $.Scratch.Add "index" (dict "uri" .Permalink "title" .Title "abstract" .Summary "content" .Plain "tags" .Params.tags "categories" .Params.tags) -}} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} -- cgit v1.2.3-54-g00ecf