diff options
author | DSRKafuU | 2020-06-15 14:26:00 +0800 |
---|---|---|
committer | GitHub | 2020-06-15 14:26:00 +0800 |
commit | a27de2dabacb3b3ecddcefb90b893cc9c99fcfcf (patch) | |
tree | 8784324472b317dd4204f6620583add19cdf1956 /layouts/_default/index.json | |
parent | 398ca6e2f300cce5c7bf7fa69fde42b4b592f5a4 (diff) | |
parent | d0569100c68fc2dd9c7fae4d91915fd49da8d71f (diff) | |
download | hugo-theme-fuji-a27de2dabacb3b3ecddcefb90b893cc9c99fcfcf.tar.gz hugo-theme-fuji-a27de2dabacb3b3ecddcefb90b893cc9c99fcfcf.tar.bz2 hugo-theme-fuji-a27de2dabacb3b3ecddcefb90b893cc9c99fcfcf.zip |
Merge branch 'dev' into google-adsense
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..a823e62 --- /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 "contents" .Plain "permalink" .Permalink) -}} +{{- end -}} +{{- $.Scratch.Get "search" | jsonify -}}
\ No newline at end of file |