29 lines
773 B
HTML
29 lines
773 B
HTML
|
{{ define "main" }}
|
||
|
<h1>Arquivos anuais: {{ .Date.Format "2006" }}</h1>
|
||
|
|
||
|
{{ $year := .Date.Format "2006" }}
|
||
|
<ul class='articles detailed'>
|
||
|
{{ range (where site.Pages "Section" "artigos") }}
|
||
|
{{ if (eq (.Date.Format "2006") $year) }}
|
||
|
<li>
|
||
|
{{ $cover := (index (.Resources.ByType "image") 0) }}
|
||
|
{{ if $cover }}
|
||
|
<img src="{{ $cover.Permalink }}" alt="{{ .Params.coverdescription }}" title="{{ .Params.coverdescription }}" />
|
||
|
{{ end }}
|
||
|
|
||
|
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||
|
|
||
|
<div class='summary'>
|
||
|
{{ .Summary }}
|
||
|
</div>
|
||
|
|
||
|
<p class='readmore'><a href="{{ .Permalink }}">Ler artigo completo →</a></p>
|
||
|
|
||
|
{{ partial "byline.html" . }}
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
{{ end }}
|
||
|
|