feat: list is now sorted by title

This commit is contained in:
Wivik 2023-08-26 13:22:53 +02:00
parent b301042684
commit aee47cceee
No known key found for this signature in database
GPG Key ID: 4C47CF1D8592D50F

View File

@ -6,7 +6,7 @@
<main class="album-list">
{{ range .Pages }}
{{ range sort .Pages "Title" }}
{{ $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 }}')">