diff options
author | DSRKafuU | 2020-06-19 00:40:29 +0800 |
---|---|---|
committer | GitHub | 2020-06-19 00:40:29 +0800 |
commit | ec4b32aa7ab6b71d0b9f756bc8d1c1b1e3cf8353 (patch) | |
tree | 65938a770dbb2c02f7028204d3cf77ca52990b97 /layouts/_default/index.json | |
parent | 1a9b75fa6216334d0a9a1c379dba212888ce6f76 (diff) | |
parent | edbbfabae66d75217a95e3e0a054548502ebf2d9 (diff) | |
download | hugo-theme-fuji-ec4b32aa7ab6b71d0b9f756bc8d1c1b1e3cf8353.tar.gz hugo-theme-fuji-ec4b32aa7ab6b71d0b9f756bc8d1c1b1e3cf8353.tar.bz2 hugo-theme-fuji-ec4b32aa7ab6b71d0b9f756bc8d1c1b1e3cf8353.zip |
Merge pull request #34 from amzrk2/dev
Pre-release v2.1.0
Diffstat (limited to 'layouts/_default/index.json')
-rw-r--r-- | layouts/_default/index.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/_default/index.json b/layouts/_default/index.json new file mode 100644 index 0000000..e582dda --- /dev/null +++ b/layouts/_default/index.json @@ -0,0 +1,5 @@ +{{- $.Scratch.Add "search" slice -}} +{{- range (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) -}} + {{- $.Scratch.Add "search" (dict "title" .Title "tags" .Params.tags "content" .Plain "permalink" .Permalink "date" (.Date.Format "2006-01-02")) -}} +{{- end -}} +{{- $.Scratch.Get "search" | jsonify -}}
\ No newline at end of file |