mirror of
https://github.com/GuerillaStudio/now-playing
synced 2024-11-09 14:31:51 +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" }}
|
{{ 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>
|
<title>{{ if (not $paginator.HasPrev) }}{{ .Site.Title }} ∴ Handpicked Albums by the Glitch Family{{ else }}{{ .Site.Title }} ∴ Albums (Page {{ $paginator.PageNumber }}) {{ end }}</title>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" "musics") }}
|
||||||
<main>
|
<main>
|
||||||
{{ if .IsHome | (not $paginator.HasPrev) }}
|
{{ if .IsHome | (not $paginator.HasPrev) }}
|
||||||
<div class="home-head">
|
<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">
|
<div class="grid grid-catalog">
|
||||||
{{ range sort $pages.Pages "Date" "desc" }}
|
{{ range sort $pages.Pages "Date" "desc" }}
|
||||||
{{ $original := resources.Get .Params.cover }}
|
{{ $original := resources.Get .Params.cover }}
|
||||||
|
|
Loading…
Reference in a new issue