Compare commits
No commits in common. "a1733274707c8b1c2b397aba49c0437d39583064" and "f44ae3d46df37601cdf6a28111b6a3d9d5b6a132" have entirely different histories.
a173327470
...
f44ae3d46d
|
@ -10,7 +10,6 @@ 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,19 +1,14 @@
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
<article class="homepage-content h-entry e-content">
|
<article class="homepage-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">
|
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
||||||
{{ if .Site.Params.homepageSectionTitle }}
|
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}
|
||||||
<h2 class="p-name u-url"><a href="{{ .Site.BaseURL }}">{{ .Site.Params.homepageSectionTitle }}</a></h2>
|
{{ if ne $index 0 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
{{ .Render "summary" }}
|
||||||
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}
|
{{ end }}
|
||||||
{{ 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