jakstys.lt/themes/default/layouts/index.html
Motiejus Jakštys 0bc0ea4577 Add 'jakstys.lt/themes/default/' from commit '641a854a0a705a5ddbb3badeb2bc23cc079f9de6'
git-subtree-dir: jakstys.lt/themes/default
git-subtree-mainline: b82ef4c7a5626048be31904c02f41567b158f043
git-subtree-split: 641a854a0a705a5ddbb3badeb2bc23cc079f9de6
2022-04-11 18:28:03 +03:00

15 lines
483 B
HTML

{{ define "main" -}}
<div>
{{ .Content -}}
</div>
<ul class="article-list">
{{ range (.Paginate ( where .Site.RegularPages "Type" "in" site.Params.mainSections )).Pages -}}
<li class="article-item">
<div class="article-date">{{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02 15:04") }}</div>
<div class="article-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></div>
</li>
{{ end -}}
</ul>
{{ template "_internal/pagination.html" . -}}
{{ end -}}