diff options
author | Emir Ribić <ribice@gmail.com> | 2020-07-07 17:27:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 17:27:12 +0300 |
commit | f6b14065ab0afeb36af368d08bdbcab6d7282143 (patch) | |
tree | 27980c4f9d426af1f45f0138488ec2ff1377b186 | |
parent | 2b18ebb2d0b08b8ee570fa6e85f143661fc0fd78 (diff) | |
parent | 5df1d5d755c1443f2e292bd35923fec176c26b2a (diff) |
Merge pull request #99 from mogimogitomato/fix/tag_page_isnt_showing
change function of getting page collections
-rw-r--r-- | layouts/index.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html index 526534b..3c991d3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,9 +2,12 @@ {{ partial "nav" . }} <section class="section"> <div class="container"> - {{- $pctx := . -}} - {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} - {{- $pages := $pctx.RegularPages -}} + {{- $pages := . -}} + {{- if .IsHome -}} + {{- $pages = .Site.RegularPages -}} + {{- else -}} + {{ $pages = .Pages -}} + {{- end -}} {{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }} {{ range sort .Paginator.Pages }} <article> |