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