New styles

This commit is contained in:
2017-07-21 08:09:22 +02:00
parent 06f6fd1e76
commit 8a72b76d27
6 changed files with 58 additions and 19 deletions

View File

@ -45,5 +45,23 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
})
})
openGraph := &arn.OpenGraph{
Tags: map[string]string{
"og:title": viewUser.Nick,
"og:image": viewUser.LargeAvatar(),
"og:url": "https://" + ctx.App.Config.Domain + viewUser.Link(),
"og:site_name": "notify.moe",
"og:description": viewUser.Tagline,
"og:type": "profile",
"profile:username": viewUser.Nick,
},
Meta: map[string]string{
"description": viewUser.Tagline,
"keywords": viewUser.Nick + ",profile",
},
}
ctx.Data = openGraph
return ctx.HTML(components.Profile(viewUser, user, animeList, threads, posts, tracks, ctx.URI()))
}