29 lines
814 B
Go
Raw Normal View History

2017-06-15 21:03:55 +00:00
package frontpage
import (
"github.com/aerogo/aero"
2017-07-06 19:38:19 +00:00
"github.com/animenotifier/arn"
2017-06-15 21:03:55 +00:00
"github.com/animenotifier/notify.moe/components"
)
// Get ...
func Get(ctx *aero.Context) string {
2017-11-17 13:51:55 +00:00
description := "Anime list, tracker, database and notifier for new anime episodes. Create your own anime list and keep track of your progress as you watch."
2017-07-06 19:38:19 +00:00
ctx.Data = &arn.OpenGraph{
Tags: map[string]string{
"og:title": ctx.App.Config.Title,
"og:description": description,
"og:type": "website",
"og:url": "https://" + ctx.App.Config.Domain,
2017-11-04 21:23:07 +00:00
"og:image": "https://" + ctx.App.Config.Domain + "/images/brand/220.png",
2017-07-06 19:38:19 +00:00
},
Meta: map[string]string{
"description": description,
"keywords": "anime,list,tracker,notifier",
},
}
2017-06-15 21:03:55 +00:00
return ctx.HTML(components.FrontPage())
}