diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-04-29 12:14:58 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-04-29 12:14:58 +0200 |
commit | a19b726625d74206b3a8e307722230d5ff265dec (patch) | |
tree | 7e33f08a69a1d929e227ecec00fcf57613c3b66e /layouts | |
parent | a5ca48ae1d0ddb487614bff39d618095cd81be9d (diff) | |
download | www-andreasbaumann-cc-a19b726625d74206b3a8e307722230d5ff265dec.tar.gz www-andreasbaumann-cc-a19b726625d74206b3a8e307722230d5ff265dec.tar.bz2 |
bulding json version of pages, added small offsite indexer and query test program (elasticlunr)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.json | 5 |
1 files changed, 5 insertions, 0 deletions
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 -}} |