image thumbnails
This commit is contained in:
parent
640e9a2d0c
commit
26d81e7c64
210 changed files with 28 additions and 5 deletions
7
main.go
7
main.go
|
|
@ -85,10 +85,11 @@ func albumImages(page string) []string {
|
|||
}
|
||||
var names []string
|
||||
for _, e := range entries {
|
||||
if filepath.Ext(e.Name()) == ".avif" {
|
||||
name := page + "/" + e.Name()
|
||||
names = append(names, name)
|
||||
name := e.Name()
|
||||
if filepath.Ext(name) != ".avif" || strings.HasSuffix(name, "_thumb.avif") {
|
||||
continue
|
||||
}
|
||||
names = append(names, page+"/"+name)
|
||||
}
|
||||
sort.Strings(names)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue