1
0
Fork 0
mirror of https://github.com/GuerillaHQ/now-playing synced 2024-06-27 14:01:35 +00:00

improve album listing selection

This commit is contained in:
Tixie 2019-12-03 22:03:44 +01:00
parent 9ba6a5fc71
commit 9bcc17751c
2 changed files with 3 additions and 3 deletions

View file

@ -1,9 +1,9 @@
{{ define "metaTitle" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" "musics") }}
<title>{{ if (not $paginator.HasPrev) }}{{ .Site.Title }} ∴ Handpicked Albums by the Glitch Family{{ else }}{{ .Site.Title }} ∴ Albums (Page {{ $paginator.PageNumber }}) {{ end }}</title>
{{ end }}
{{ define "main" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" "musics") }}
<main>
{{ if .IsHome | (not $paginator.HasPrev) }}
<div class="home-head">

View file

@ -1,4 +1,4 @@
{{ $pages := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ $pages := .Paginate (where .Site.RegularPages "Type" "in" "musics") }}
<div class="grid grid-catalog">
{{ range sort $pages.Pages "Date" "desc" }}
{{ $original := resources.Get .Params.cover }}