atri.dad/pages/testimonials.go

25 lines
471 B
Go
Raw Normal View History

2024-04-12 11:31:41 -06:00
package pages
import (
"atri.dad/lib"
"github.com/labstack/echo/v4"
)
type TestimonialsProps struct {
Images []string
}
func Testimonials(c echo.Context) error {
2024-08-05 12:40:07 -06:00
images := lib.GeneratePublicURLsFromDirectory("testimonials/")
2024-04-12 11:31:41 -06:00
props := TestimonialsProps{
Images: images,
}
// Specify the partials used by this page
partials := []string{"header", "navitems"}
// Render the template
return lib.RenderTemplate(c.Response().Writer, "base", partials, props)
}