source: tanzpartie-hugo/themes/bilberry-hugo-theme/layouts/_default/list.html @ 16971

Last change on this file since 16971 was 16971, checked in by Henrik Bettermann, 2 years ago
File size: 760 bytes
RevLine 
[16971]1{{ define "main" }}
2    {{ $paginator := .Paginate (where .Data.Pages "Type" "ne" "page") (index .Site.Params "paginate" | default 7) }}
3    {{ range  where .Paginator.Pages "Type" "ne" "page" }}
4        <div class="article-wrapper u-cf">
5            {{  if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }}
6                {{ partial (print "content-type/" .Type ".html") (dict "ctx" . "template_type" "multiple") }}
7            {{ else }}
8                {{ partial "content-type/article.html" (dict "ctx" . "template_type" "multiple") }}
9            {{ end }}
10        </div>
11    {{ end }}
12
13    {{ partial "paginator.html" . }}
14{{ end }}
Note: See TracBrowser for help on using the repository browser.