2018-03-14 18:10:21 +01:00

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)
}