You've already forked golang-base-project
Added multilanguage support
This commit is contained in:
@ -7,10 +7,7 @@ import (
|
||||
|
||||
// Index renders the HTML of the index page
|
||||
func (controller Controller) Index(c *gin.Context) {
|
||||
pd := PageData{
|
||||
Title: "Home",
|
||||
IsAuthenticated: isAuthenticated(c),
|
||||
CacheParameter: controller.config.CacheParameter,
|
||||
}
|
||||
pd := controller.DefaultPageData(c)
|
||||
pd.Title = pd.Trans("Home")
|
||||
c.HTML(http.StatusOK, "index.html", pd)
|
||||
}
|
||||
|
Reference in New Issue
Block a user