hide search page from search results
This commit is contained in:
parent
0a0ff640a2
commit
af403dd262
|
@ -5,4 +5,6 @@ outputs:
|
||||||
- "html"
|
- "html"
|
||||||
- "json"
|
- "json"
|
||||||
norss: true
|
norss: true
|
||||||
|
nosearch: true
|
||||||
|
comments: false
|
||||||
---
|
---
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
{
|
{
|
||||||
{{ $mscratch := newScratch }}
|
{{ $mscratch := newScratch }}
|
||||||
{{ $mscratch.Add "articles" slice }}
|
{{ $mscratch.Add "articles" slice }}
|
||||||
{{ range .Site.RegularPages }}
|
{{ $pages := where .Site.RegularPages "Params.nosearch" "!=" "true" }}
|
||||||
|
{{ range $pages }}
|
||||||
{{ $mscratch.Add "articles" (dict
|
{{ $mscratch.Add "articles" (dict
|
||||||
"title" .Title
|
"title" .Title
|
||||||
"date" (.Date.Format "2006-01-02")
|
"date" (.Date.Format "2006-01-02")
|
||||||
|
|
Loading…
Reference in New Issue