diff options
author | Chris Reddington <791642+chrisreddington@users.noreply.github.com> | 2020-11-24 16:41:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 16:41:16 +0300 |
commit | 92a9367e43777965f8fa4ca4896932245eac097b (patch) | |
tree | 7654b227f017c9d3be3e7ce12c49c658432943b2 | |
parent | 8b0dcab82f4e7b11f06c9ecadd5d3f924302c576 (diff) |
Upcoming episodes should be sorted from soonest to furthest away (#302)
-rw-r--r-- | layouts/partials/grid-upcoming.html | 2 | ||||
-rw-r--r-- | layouts/partials/row-upcoming.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/grid-upcoming.html b/layouts/partials/grid-upcoming.html index 5670050..0807df8 100644 --- a/layouts/partials/grid-upcoming.html +++ b/layouts/partials/grid-upcoming.html @@ -8,7 +8,7 @@ {{ $paginator := .Paginate (where ( where site.RegularPages "Type" "in" site.Params.mainSections) ".Params.upcoming" "==" true ) }} - {{ range $paginator.Pages }} + {{ range $paginator.Pages.ByDate }} {{ $.Scratch.Set "episode" .File.BaseFileName }} <div class="col-md-4 grid_episode_col"> <div class="episode-image-homepage"> diff --git a/layouts/partials/row-upcoming.html b/layouts/partials/row-upcoming.html index 60d9918..ee801a9 100644 --- a/layouts/partials/row-upcoming.html +++ b/layouts/partials/row-upcoming.html @@ -14,7 +14,7 @@ {{- else -}} <div class="col-md-8"> {{- end -}} - {{- range $paginator.Pages -}} + {{- range $paginator.Pages.ByDate -}} {{- with .Params.truncate -}} {{- $.Scratch.Set "truncate" . }} {{- else -}} |