1
0
Fork 0
mirror of https://github.com/GuerillaHQ/now-playing synced 2024-07-04 07:37:56 +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" }} {{ 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">

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"> <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 }}