package pages import ( "fmt" "strings" "git.akyoto.dev/go/web" "git.akyoto.dev/web/akyoto.dev/server/app" ) func Frontpage(ctx web.Context) error { head := fmt.Sprintf(`%s`, "Projects", "projects") body := strings.Builder{} body.WriteString(`

Projects

`) for i, markdown := range app.Projects { body.WriteString(markdown) if i != len(app.Projects)-1 { body.WriteString(`
`) } } return app.Render(ctx, head, body.String()) }