Skip to content

Commit

Permalink
Allow default .Site.Params.showAllPostsArchive
Browse files Browse the repository at this point in the history
Allow, if .Site.Params.showAllPostsArchive is not set, the site to
function as if the variable has been set to false.

Fixes  monkeyWzr#83

Signed-off-by: Jason Rogena <[email protected]>
  • Loading branch information
jasonrogena committed Jul 8, 2021
1 parent 7619bb9 commit a832f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ <h2>{{ $pageYear }}</h2>
</li>
{{ end }}
</ul>
{{ if eq .Site.Params.showAllPostsArchive false }}
{{ if or (not .Site.Params.showAllPostsArchive) (eq .Site.Params.showAllPostsArchive false) }}
{{ partial "pagination.html" . }}
{{ end }}
</div>
{{ end }}
{{ end }}

0 comments on commit a832f69

Please sign in to comment.