Multiple pages
This commit is contained in:
@ -7,5 +7,9 @@ import (
|
||||
)
|
||||
|
||||
func Home(c *gin.Context) {
|
||||
templates.Home("World").Render(c, c.Writer)
|
||||
pc := templates.PageContext{
|
||||
Title: "Welcome to the demo",
|
||||
ActivePage: "home",
|
||||
}
|
||||
templates.Home(pc, "World").Render(c, c.Writer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user