semantic-indieweb/layouts/index.html

29 lines
1.1 KiB
HTML
Raw Permalink Normal View History

{{ define "content" }}
2019-12-31 17:05:18 +00:00
{{ $paginator := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )) }}
{{ if eq .Paginator.PageNumber 1 }}
<article class="homepage-content h-entry e-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</article>
{{ end }}
<section class="h-feed">
{{ if eq .Paginator.PageNumber 1 }}
{{ if .Site.Params.homepageSectionTitle }}
<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>
{{ end }}
{{ end }}
<!-- 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 }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "summary" }}
{{ end }}
</section>
{{ end }}
{{ define "content-footer" }}
{{ partial "webmentions.html" . }}
{{ partial "paginator.html" .Paginator }}
{{ end }}