This commit is contained in:
2024-10-23 15:04:26 -06:00
parent 61c969c9de
commit 8d29cc2b1a
11 changed files with 121 additions and 11 deletions

24
pages/pubs.go Normal file
View File

@ -0,0 +1,24 @@
package pages
import (
"atri.dad/lib"
"github.com/labstack/echo/v4"
)
type PubProps struct {
Pubs []lib.CardLink
}
func Pubs(c echo.Context) error {
pubs := []lib.CardLink{}
props := PubProps{
Pubs: pubs,
}
// Specify the partials used by this page
partials := []string{"header", "navitems", "cardlinks"}
// Render the template
return lib.RenderTemplate(c.Response().Writer, "base", partials, props)
}