package main import "fmt" import "time" import "net/url" templ index(ps []Post) {
@posts(ps)
} templ posts(posts []Post) { for _, post := range posts {
{

{ post.Description }

{ post.CreatedAt.Format("2006-01-02 - 15:04") }

} if len(posts) > 0 {
} }