Made testimonials great again
This commit is contained in:
28
pages/testimonials.go
Normal file
28
pages/testimonials.go
Normal file
@ -0,0 +1,28 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"atri.dad/lib"
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
type TestimonialsProps struct {
|
||||
Images []string
|
||||
}
|
||||
|
||||
func Testimonials(c echo.Context) error {
|
||||
images := []string{
|
||||
"/public/img/testimonials/1.png",
|
||||
"/public/img/testimonials/2.png",
|
||||
"/public/img/testimonials/3.png",
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user