Merge branch 'master' of ssh://git.thecorams.net:2222/kevin/semantic-indieweb
commit
d85b7b90b1
|
@ -1,4 +1,5 @@
|
|||
{{ define "content" }}
|
||||
{{ $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 -->
|
||||
|
@ -15,7 +16,7 @@
|
|||
{{ end }}
|
||||
{{ 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 }}
|
||||
{{ range $index, $page := $paginator.Pages }}
|
||||
{{ if ne $index 0 }}
|
||||
{{ end }}
|
||||
{{ .Render "summary" }}
|
||||
|
|
Loading…
Reference in New Issue