Improved group page design
This commit is contained in:
16
pages/group/opengraph.go
Normal file
16
pages/group/opengraph.go
Normal file
@ -0,0 +1,16 @@
|
||||
package group
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func getOpenGraph(ctx *aero.Context, group *arn.Group) *arn.OpenGraph {
|
||||
return &arn.OpenGraph{
|
||||
Tags: map[string]string{
|
||||
"og:title": group.Name,
|
||||
"og:url": "https://" + ctx.App.Config.Domain + group.Link(),
|
||||
"og:site_name": "notify.moe",
|
||||
},
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user