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