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

39 lines
1.2 KiB
HTML
Raw Normal View History

2018-01-11 09:16:05 +04:00
{{ define "main" }}
{{ $baseurl := .Site.BaseURL }}
2018-01-13 03:38:00 +04:00
<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 }}
2018-01-11 09:16:05 +04:00
2018-01-13 03:38:00 +04:00
{{ .Content }}
2018-01-11 09:16:05 +04:00
2018-01-13 03:38:00 +04:00
<hr>
2019-02-10 13:18:45 +04:00
{{ if .Pages }}
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}}
2018-01-13 03:38:00 +04:00
<h3 class="is-size-4">{{ .Key }}</h3>
2019-02-10 13:18:45 +04:00
{{ range where .Pages "Section" "posts" }}
2018-01-13 03:38:00 +04:00
<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>
2018-01-11 09:16:05 +04:00
{{ end }}
2018-01-13 03:38:00 +04:00
{{ end }}
2019-02-10 13:18:45 +04:00
{{ end }}
2018-01-11 09:16:05 +04:00
</div>
</div>
{{ partial "pagination" . }}
{{ end }}