2019-11-21 04:38:53 +00:00
|
|
|
{{ define "content" }}
|
2019-12-31 17:05:18 +00:00
|
|
|
{{ $paginator := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )) }}
|
2019-12-31 16:57:48 +00:00
|
|
|
{{ if eq .Paginator.PageNumber 1 }}
|
2019-12-07 19:33:50 +00:00
|
|
|
<article class="homepage-content h-entry e-content">
|
2019-11-21 04:38:53 +00:00
|
|
|
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
|
|
|
{{.Content}}
|
|
|
|
</article>
|
2019-12-31 16:57:48 +00:00
|
|
|
{{ end }}
|
2019-12-07 19:33:50 +00:00
|
|
|
<section class="h-feed">
|
2019-12-31 16:57:48 +00:00
|
|
|
{{ if eq .Paginator.PageNumber 1 }}
|
2019-12-07 19:33:50 +00:00
|
|
|
{{ if .Site.Params.homepageSectionTitle }}
|
2019-12-08 03:00:36 +00:00
|
|
|
<h2>
|
|
|
|
<a class="u-url" href="{{ .Site.BaseURL }}"><span class="p-name">{{ .Site.Params.homepageSectionTitle }}</span></a>
|
|
|
|
<a rel="alternate" type="application/rss+xml" href="index.xml"><i class="fa fa-rss"></i></a>
|
|
|
|
</h2>
|
2019-12-07 19:33:50 +00:00
|
|
|
{{ end }}
|
2019-12-31 16:57:48 +00:00
|
|
|
{{ end }}
|
2019-12-07 19:33:50 +00:00
|
|
|
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
2019-12-31 17:05:18 +00:00
|
|
|
{{ range $index, $page := $paginator.Pages }}
|
2019-12-07 19:33:50 +00:00
|
|
|
{{ if ne $index 0 }}
|
|
|
|
{{ end }}
|
|
|
|
{{ .Render "summary" }}
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
2019-11-24 21:51:04 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ define "content-footer" }}
|
2019-12-23 22:55:57 +00:00
|
|
|
{{ partial "webmentions.html" . }}
|
2019-11-24 21:51:04 +00:00
|
|
|
{{ partial "paginator.html" .Paginator }}
|
2019-11-21 04:38:53 +00:00
|
|
|
{{ end }}
|