incorporate search into website
This commit is contained in:
parent
702cd0201c
commit
1c4fe877f5
5 changed files with 414 additions and 0 deletions
1
layouts/_default/index.json
Normal file
1
layouts/_default/index.json
Normal file
|
@ -0,0 +1 @@
|
|||
{{- $.Scratch.Add "index" slice -}} {{- range .Site.RegularPages -}} {{- $.Scratch.Add "index" (dict "date" (.PublishDate.Format "01-12-2006") "title" .Title "tags" .Params.tags "section" (index .Params.categories 0) "desc" .Plain "summary" (printf "%s..." (substr (.Summary | plainify) 0 90)) "permalink" .Permalink) -}} {{- end -}} {{- $.Scratch.Get "index" | jsonify -}}
|
Loading…
Add table
Add a link
Reference in a new issue