28 lines
746 B
HTML
28 lines
746 B
HTML
{{ define "main" -}}
|
|
<div class="posts">
|
|
{{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.MainSections -}}
|
|
{{- $paginator := .Paginate $pages -}}
|
|
|
|
{{ range $paginator.Pages }}
|
|
<article class="post">
|
|
<h1 class="post-title">
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
</h1>
|
|
|
|
<div class="post-date">
|
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time> </div>
|
|
|
|
<div>
|
|
{{ .Summary }}
|
|
</div>
|
|
|
|
<div class="read-more-link">
|
|
<a href="{{ .Permalink }}">...</a>
|
|
</div>
|
|
</article>
|
|
{{- end }}
|
|
</div>
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
|
{{- end }}
|