Compare commits

..

2 Commits

Author SHA1 Message Date
Bel LaPointe
6a8445fbd0 draw even if no thumbnail avail 2024-09-19 12:31:13 -04:00
Bel LaPointe
0e4da7e436 sort by href 2024-09-19 12:30:01 -04:00
4 changed files with 3 additions and 5 deletions

View File

@@ -6,9 +6,9 @@
<body> <body>
<div> <div>
{{ range .Series }} {{ range .Series }}
<div style="display: inline-block; max-width: 12em; max-height: 9em; margin-bottom: .7em;"> <div style="display: inline-block; width: 12em; height: 9em; margin-bottom: .7em;">
<a href="/media/{{ .HREF }}"> <a href="/media/{{ .HREF }}">
<img src="/media/{{ .Thumbnail }}" alt="{{ .Thumbnail }}"/> <img src="/media/{{ .Thumbnail }}" alt="{{ .HREF }}"/>
<span>{{ .Thumbnail }}</span> <span>{{ .Thumbnail }}</span>
<br> <br>
</a> </a>

View File

@@ -89,7 +89,7 @@ func Run(ctx context.Context, args []string) error {
series = append(series, v) series = append(series, v)
} }
slices.SortFunc(series, func(a, b Series) int { slices.SortFunc(series, func(a, b Series) int {
return -1 * strings.Compare(path.Base(a.Thumbnail), path.Base(b.Thumbnail)) return -1 * strings.Compare(path.Base(a.HREF), path.Base(b.HREF))
}) })
if err := tmpl.Execute(w, map[string]any{ if err := tmpl.Execute(w, map[string]any{

View File

@@ -1 +0,0 @@
LAdN7KVw-Ig.mp4

View File

@@ -1 +0,0 @@
LAdN7KVw-Ig.jpg