feat: list is now sorted by title
This commit is contained in:
parent
b301042684
commit
aee47cceee
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<main class="album-list">
|
<main class="album-list">
|
||||||
{{ range .Pages }}
|
{{ range sort .Pages "Title" }}
|
||||||
|
|
||||||
{{ $default_img := resources.Get "img/default.png" }}
|
{{ $default_img := resources.Get "img/default.png" }}
|
||||||
<section class="album-card" style="background-image: url('{{ if .Params.cover }}{{ .Site.BaseURL }}/{{ .Params.cover }}{{ else }}{{ $default_img.Permalink }}{{ end }}')">
|
<section class="album-card" style="background-image: url('{{ if .Params.cover }}{{ .Site.BaseURL }}/{{ .Params.cover }}{{ else }}{{ $default_img.Permalink }}{{ end }}')">
|
||||||
|
Loading…
Reference in New Issue
Block a user