hugo-tango-theme/layouts/index.html

25 lines
752 B
HTML
Raw Normal View History

2018-01-11 09:16:05 +04:00
{{ define "main" }}
2018-01-13 03:38:00 +04:00
{{ range $index, $page := first 10 (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
<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 }}
2018-01-11 09:16:05 +04:00
</div>
2018-01-13 03:38:00 +04:00
{{ end }}
</span>
{{ partial "aside" . }}
<br>
<p>{{ .Summary }}</p>
{{ if .Truncated }}
<a href="{{ .RelPermalink }}">{{ .Site.Params.i18n_read_more }}</a>
{{ end }}
<hr>
</article>
{{ end }}
2018-01-11 09:16:05 +04:00
{{ end }}