Wrap homepage list in h-feed microformat

Kevin C. Coram 2019-12-07 14:33:50 -05:00
parent 7de183f6c6
commit a173327470
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
1 changed files with 12 additions and 7 deletions

View File

@ -1,14 +1,19 @@
{{ define "content" }} {{ define "content" }}
<article class="homepage-content"> <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 --> <!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}} {{.Content}}
</article> </article>
<section class="h-feed">
{{ if .Site.Params.homepageSectionTitle }}
<h2 class="p-name u-url"><a href="{{ .Site.BaseURL }}">{{ .Site.Params.homepageSectionTitle }}</a></h2>
{{ end }}
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. --> <!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }} {{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}
{{ if ne $index 0 }} {{ if ne $index 0 }}
{{ end }} {{ end }}
{{ .Render "summary" }} {{ .Render "summary" }}
{{ end }} {{ end }}
</section>
{{ end }} {{ end }}
{{ define "content-footer" }} {{ define "content-footer" }}
{{ partial "paginator.html" .Paginator }} {{ partial "paginator.html" .Paginator }}