Skip to content

Commit

Permalink
fix listing problem?
Browse files Browse the repository at this point in the history
  • Loading branch information
shaform committed Aug 16, 2019
1 parent 852df7d commit 553b158
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ <h1 class="header-title">
</div>
{{ end }}
{{ define "main" }}
{{- $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
{{- $pages := .Pages -}}
{{- if .IsHome -}}
{{- $pages = where .Site.RegularPages "Type" "in" "posts" -}}
{{- end -}}
{{- $paginator := .Paginate $pages -}}
<div class="archive-container">
<div class="container content archive">
<h2>{{ i18n "latest_posts" }}{{ if $paginator.HasPrev }} <small>- {{ i18n "page" }} {{ $paginator.PageNumber }}</small>{{ end }}</h2>
Expand Down

0 comments on commit 553b158

Please # to comment.