hugo-tango-theme/layouts/index.html

26 lines
952 B
HTML
Raw Permalink Normal View History

2018-01-11 09:16:05 +04:00
{{ define "main" }}
2018-01-14 04:17:34 +04:00
{{ $baseurl := .Site.BaseURL }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{ range $paginator.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 }}
2018-01-13 03:38:00 +04:00
</span>
2018-01-14 04:17:34 +04:00
{{ partial "aside" . }}
<br>
<p>{{ .Summary }}</p>
{{ if .Truncated }}
<a href="{{ .RelPermalink }}">{{ .Site.Params.i18n_read_more }}</a>
2018-01-13 03:38:00 +04:00
{{ end }}
2018-01-14 04:17:34 +04:00
<hr>
</article>
2018-01-13 03:38:00 +04:00
{{ end }}
2018-01-14 04:17:34 +04:00
{{ partial "pagination" . }}
2018-01-11 09:16:05 +04:00
{{ end }}