Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ribice/kiss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmir Ribić <ribice@gmail.com>2020-07-07 17:27:12 +0300
committerGitHub <noreply@github.com>2020-07-07 17:27:12 +0300
commitf6b14065ab0afeb36af368d08bdbcab6d7282143 (patch)
tree27980c4f9d426af1f45f0138488ec2ff1377b186
parent2b18ebb2d0b08b8ee570fa6e85f143661fc0fd78 (diff)
parent5df1d5d755c1443f2e292bd35923fec176c26b2a (diff)
Merge pull request #99 from mogimogitomato/fix/tag_page_isnt_showing
change function of getting page collections
-rw-r--r--layouts/index.html9
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>