mirror of
https://github.com/GuerillaStudio/now-playing
synced 2025-01-02 09:21:57 +00:00
improve album listing selection
This commit is contained in:
parent
9ba6a5fc71
commit
9bcc17751c
2 changed files with 3 additions and 3 deletions
|
@ -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">
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue