hugo-tango-theme/layouts/_default/list.html

39 lines
1.2 KiB
HTML

{{ define "main" }}
{{ $baseurl := .Site.BaseURL }}
<div class="columns">
<div class="column">
{{ if eq .Data.Singular "tag" }}
<h2 class="is-size-2">#{{ .Title | lower }}</h2>
{{ else }}
<h2 class="is-size-2">{{ .Title }}</h2>
{{ end }}
{{ .Content }}
<hr>
{{ if .Pages }}
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}}
<h3 class="is-size-4">{{ .Key }}</h3>
{{ range where .Pages "Section" "posts" }}
<article>
<span class="is-size-2"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
{{ if .Params.tags }}
<div class="tags is-pulled-right">
{{ range $i, $t := .Params.tags }}
<span class="tag"><a href="/tags/{{$t | urlize }}/">#{{ $t }}</a></span>
{{ end }}
</div>
{{ end }}
</span>
{{ partial "aside" . }}
<hr>
</article>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
{{ partial "pagination" . }}
{{ end }}