Added frontpage and Google login
This commit is contained in:
13
layout/layout.go
Normal file
13
layout/layout.go
Normal file
@ -0,0 +1,13 @@
|
||||
package layout
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
)
|
||||
|
||||
// Render layout.
|
||||
func Render(ctx *aero.Context, content string) string {
|
||||
user := utils.GetUser(ctx)
|
||||
return components.Layout(ctx.App, user, content)
|
||||
}
|
Reference in New Issue
Block a user