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

37 lines
1.1 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>
{{ range (.Paginate (.Data.Pages.GroupByDate "2006")).PageGroups }}
<h3 class="is-size-4">{{ .Key }}</h3>
{{ range .Pages }}
<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 }}
2018-01-11 09:16:05 +04:00
</div>
</div>
{{ partial "pagination" . }}
{{ end }}