Added frontpage and Google login

This commit is contained in:
2017-06-15 23:03:55 +02:00
parent 938057a626
commit 2d8d8299ef
12 changed files with 99 additions and 33 deletions

13
layout/layout.go Normal file
View 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)
}