Improved meta data
This commit is contained in:
@ -2,10 +2,27 @@ package frontpage
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
func Get(ctx *aero.Context) string {
|
||||
description := "Anime list and notifier for new anime episodes. Create your own anime list and keep track of your progress as you watch."
|
||||
|
||||
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,
|
||||
"og:image": "https://" + ctx.App.Config.Domain + "/images/brand/600",
|
||||
},
|
||||
Meta: map[string]string{
|
||||
"description": description,
|
||||
"keywords": "anime,list,tracker,notifier",
|
||||
},
|
||||
}
|
||||
|
||||
return ctx.HTML(components.FrontPage())
|
||||
}
|
||||
|
Reference in New Issue
Block a user