Compare commits
2 Commits
f44ae3d46d
...
a173327470
Author | SHA1 | Date |
---|---|---|
|
a173327470 | |
|
7de183f6c6 |
|
@ -10,6 +10,7 @@ paginate = 5
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
subtitle = "A theme with no CSS and only basic layouts"
|
subtitle = "A theme with no CSS and only basic layouts"
|
||||||
|
homepageSectionTitle = "What's New"
|
||||||
mainSections = [ "posts" ]
|
mainSections = [ "posts" ]
|
||||||
|
|
||||||
# Configuration Parameters for IndieWeb h-card
|
# Configuration Parameters for IndieWeb h-card
|
||||||
|
|
|
@ -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>
|
||||||
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
<section class="h-feed">
|
||||||
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}
|
{{ if .Site.Params.homepageSectionTitle }}
|
||||||
{{ if ne $index 0 }}
|
<h2 class="p-name u-url"><a href="{{ .Site.BaseURL }}">{{ .Site.Params.homepageSectionTitle }}</a></h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .Render "summary" }}
|
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ define "content-footer" }}
|
{{ define "content-footer" }}
|
||||||
{{ partial "paginator.html" .Paginator }}
|
{{ partial "paginator.html" .Paginator }}
|
||||||
|
|
Loading…
Reference in New Issue