diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-09-25 10:36:57 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-09-25 10:36:57 +0300 |
commit | a97ab9a9a71d02dd6a04ca04b4a0bdff611e84c7 (patch) | |
tree | c8e6227473d1bf468c999ca851526bfad4de8d09 /layouts | |
parent | 025b2c65c6af04530fd5dcb8157a59f8257897b1 (diff) |
Page can be ignored by embeded search engine with page param "ignoresearch"
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/index.json b/layouts/index.json index c0152f3..3875102 100644 --- a/layouts/index.json +++ b/layouts/index.json @@ -1,6 +1,8 @@ [{{ range $index, $page := .Site.Pages }} {{- if not (hasPrefix $page.Section "_") -}} +{{- if $page.File -}} {{- if not (hasPrefix $page.File.BaseFileName "__") -}} +{{- if not ( $page.Params.Ignoresearch) -}} {{- if ne $page.Type "json" -}} {{- if and $index (gt $index 0) -}},{{- end }} { @@ -13,4 +15,6 @@ {{- end -}} {{- end -}} {{- end -}} +{{- end -}} +{{- end -}} {{- end -}}]
\ No newline at end of file |