Init search index before make it
This commit is contained in:
parent
2cf3ecf406
commit
b17da60cb1
|
@ -1,3 +1,4 @@
|
|||
{{ .Scratch.Delete "searchindex" }}
|
||||
{{- $.Scratch.Add "searchindex" slice -}}
|
||||
|
||||
{{ if eq .Type "publication" }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ .Scratch.Delete "searchindex" }}
|
||||
{{- $.Scratch.Add "searchindex" slice -}}
|
||||
{{- range $index, $element := (where .Site.RegularPages "Kind" "page") -}}
|
||||
{{ with $element.Plain }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ .Scratch.Delete "searchindex" }}
|
||||
{{- $.Scratch.Add "searchindex" slice -}}
|
||||
{{- range $index, $element := (where .Site.RegularPages "Kind" "page") -}}
|
||||
{{ with $element.Plain }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ .Scratch.Delete "searchindex" }}
|
||||
{{- $.Scratch.Add "searchindex" slice -}}
|
||||
{{- range $index, $element := (where .Site.RegularPages "Kind" "page") -}}
|
||||
{{ with $element.Plain }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{ .Scratch.Delete "searchindex" }}
|
||||
{{- $.Scratch.Add "searchindex" slice -}}
|
||||
{{- range $index, $element := (where .Site.RegularPages "Kind" "page") -}}
|
||||
{{ with $element.Plain }}
|
||||
|
|
Loading…
Reference in New Issue