19 lines
334 B
Go
19 lines
334 B
Go
package soundtracks
|
|
|
|
import (
|
|
"github.com/aerogo/aero"
|
|
"github.com/animenotifier/arn"
|
|
)
|
|
|
|
// Latest renders the latest soundtracks.
|
|
func Latest(ctx aero.Context) error {
|
|
// Fetch all eligible tracks
|
|
tracks := fetchAll()
|
|
|
|
// Sort the tracks by date
|
|
arn.SortSoundTracksLatestFirst(tracks)
|
|
|
|
// Render
|
|
return render(ctx, tracks)
|
|
}
|