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)
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
component Layout(app *aero.Application, content string)
|
||||
component Layout(app *aero.Application, user *arn.User, content string)
|
||||
html(lang="en")
|
||||
head
|
||||
title= app.Config.Title
|
||||
@ -7,7 +7,7 @@ component Layout(app *aero.Application, content string)
|
||||
body
|
||||
#container
|
||||
#header
|
||||
Navigation
|
||||
Navigation(user)
|
||||
#content-container
|
||||
main#content.fade!= content
|
||||
|
||||
|
Reference in New Issue
Block a user