Exclui páginas de índice das páginas de arquivo

This commit is contained in:
Hugo Peixoto 2023-07-21 15:38:59 +01:00
parent 8ca73d3d6b
commit 561b46f68f
3 changed files with 3 additions and 3 deletions

View File

@ -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) }}

View File

@ -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) }}

View File

@ -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) }}