Only show homepage content on first page
parent
82df1f687a
commit
6ada4898f9
|
@ -1,15 +1,19 @@
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
|
{{ if eq .Paginator.PageNumber 1 }}
|
||||||
<article class="homepage-content h-entry e-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>
|
||||||
|
{{ end }}
|
||||||
<section class="h-feed">
|
<section class="h-feed">
|
||||||
|
{{ if eq .Paginator.PageNumber 1 }}
|
||||||
{{ if .Site.Params.homepageSectionTitle }}
|
{{ if .Site.Params.homepageSectionTitle }}
|
||||||
<h2>
|
<h2>
|
||||||
<a class="u-url" href="{{ .Site.BaseURL }}"><span class="p-name">{{ .Site.Params.homepageSectionTitle }}</span></a>
|
<a class="u-url" href="{{ .Site.BaseURL }}"><span class="p-name">{{ .Site.Params.homepageSectionTitle }}</span></a>
|
||||||
<a rel="alternate" type="application/rss+xml" href="index.xml"><i class="fa fa-rss"></i></a>
|
<a rel="alternate" type="application/rss+xml" href="index.xml"><i class="fa fa-rss"></i></a>
|
||||||
</h2>
|
</h2>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ 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 }}
|
||||||
|
|
Loading…
Reference in New Issue