Rev | Line | |
---|
[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.