diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-11-13 12:03:18 -0600 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-11-13 18:03:18 +0000 |
commit | 3b0303a4fcbb8b8fda258e11edb3fd3c5c09396e (patch) | |
tree | 40bb579e03bc20b52fb2f6b82d078e325e0dd378 /docs/layouts/_default | |
parent | afe50873a5d6b52177b0cd6bc9d2657faf82f311 (diff) | |
download | gitea-3b0303a4fcbb8b8fda258e11edb3fd3c5c09396e.tar.gz gitea-3b0303a4fcbb8b8fda258e11edb3fd3c5c09396e.zip |
Implement documentation search (#8937)
* Implement documentation search
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'docs/layouts/_default')
-rw-r--r-- | docs/layouts/_default/index.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/layouts/_default/index.json b/docs/layouts/_default/index.json new file mode 100644 index 0000000000..ae08324d8e --- /dev/null +++ b/docs/layouts/_default/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 -}} |