{% import "git.sr.ht/~gabrielgio/img/pkg/database/repository" %} {% code type MediaPage struct { Medias []*repository.Media Next *repository.Pagination Settings *repository.Settings } func (m *MediaPage) PreloadAttr() string { if m.Settings.PreloadVideoMetadata { return "metadata" } return "none" } %} {% func (p *MediaPage) Title() %}Media{% endfunc %} {% func (p *MediaPage) Content() %}