aboutsummaryrefslogtreecommitdiff
path: root/themes/simple/layouts/section/section.json
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-06-29 18:40:17 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-06-29 18:40:17 +0200
commit93d47662b2ce5a6dc4867687386c912e8cd13720 (patch)
treea609e947843bdd297121fd49a9e16e3dea2a1fd4 /themes/simple/layouts/section/section.json
parent89f8bc803364ca52ca0dee1a429261b9f3d9ed0e (diff)
downloadmitjafelicijan.com-93d47662b2ce5a6dc4867687386c912e8cd13720.tar.gz
Added search option with lunr.js
Diffstat (limited to 'themes/simple/layouts/section/section.json')
-rw-r--r--themes/simple/layouts/section/section.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/simple/layouts/section/section.json b/themes/simple/layouts/section/section.json
new file mode 100644
index 0000000..b8f3786
--- /dev/null
+++ b/themes/simple/layouts/section/section.json
@@ -0,0 +1,5 @@
1{{- $.Scratch.Add "index" slice -}}
2{{- range .Site.RegularPages -}}
3{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "type" .Type "permalink" .RelPermalink "summary" .Summary) -}}
4{{- end -}}
5{{- $.Scratch.Get "index" | jsonify -}}