diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-06-29 18:40:17 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-06-29 18:40:17 +0200 |
| commit | 93d47662b2ce5a6dc4867687386c912e8cd13720 (patch) | |
| tree | a609e947843bdd297121fd49a9e16e3dea2a1fd4 /themes/simple/layouts/_default/index.json | |
| parent | 89f8bc803364ca52ca0dee1a429261b9f3d9ed0e (diff) | |
| download | mitjafelicijan.com-93d47662b2ce5a6dc4867687386c912e8cd13720.tar.gz | |
Added search option with lunr.js
Diffstat (limited to 'themes/simple/layouts/_default/index.json')
| -rw-r--r-- | themes/simple/layouts/_default/index.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/simple/layouts/_default/index.json b/themes/simple/layouts/_default/index.json new file mode 100644 index 0000000..b8f3786 --- /dev/null +++ b/themes/simple/layouts/_default/index.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 -}} | ||
