Exclui páginas de índice das páginas de arquivo
This commit is contained in:
parent
8ca73d3d6b
commit
561b46f68f
|
@ -3,7 +3,7 @@
|
|||
|
||||
{{ $year := .Date.Format "2006-01-02" }}
|
||||
<ul class='articles detailed'>
|
||||
{{ range (where site.Pages "Section" "artigos") }}
|
||||
{{ range (where (where site.Pages "Section" "artigos") "Kind" "page") }}
|
||||
{{ if (eq (.Date.Format "2006-01-02") $year) }}
|
||||
<li>
|
||||
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
{{ $year := .Date.Format "2006-01" }}
|
||||
<ul class='articles detailed'>
|
||||
{{ range (where site.Pages "Section" "artigos") }}
|
||||
{{ range (where (where site.Pages "Section" "artigos") "Kind" "page") }}
|
||||
{{ if (eq (.Date.Format "2006-01") $year) }}
|
||||
<li>
|
||||
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
{{ $year := .Date.Format "2006" }}
|
||||
<ul class='articles detailed'>
|
||||
{{ range (where site.Pages "Section" "artigos") }}
|
||||
{{ range (where (where site.Pages "Section" "artigos") "Kind" "page") }}
|
||||
{{ if (eq (.Date.Format "2006") $year) }}
|
||||
<li>
|
||||
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user