Skip to content

Commit

Permalink
Merge pull request #84 from mogimogitomato/change_regularpages_context
Browse files Browse the repository at this point in the history
change regularpage's context
  • Loading branch information
ribice committed Dec 10, 2019
2 parents 073016f + 31b86b9 commit 329df09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion layouts/index.html
Expand Up @@ -2,7 +2,10 @@
{{ partial "nav" . }}
<section class="section">
<div class="container">
{{ $paginator := .Paginate (where .Site.RegularPages "Params.hidden" "ne" true) }}
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := $pctx.RegularPages -}}
{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
{{ range sort .Paginator.Pages }}
<article>
<div class="subtitle tags is-6 is-pulled-right">
Expand Down

0 comments on commit 329df09

Please sign in to comment.