Compare commits

...

2 Commits

2 changed files with 13 additions and 7 deletions

View File

@ -10,6 +10,7 @@ paginate = 5
[params]
subtitle = "A theme with no CSS and only basic layouts"
homepageSectionTitle = "What's New"
mainSections = [ "posts" ]
# Configuration Parameters for IndieWeb h-card

View File

@ -1,14 +1,19 @@
{{ 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 -->
{{.Content}}
</article>
<!-- 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 }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "summary" }}
{{ end }}
<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. -->
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "summary" }}
{{ end }}
</section>
{{ end }}
{{ define "content-footer" }}
{{ partial "paginator.html" .Paginator }}