Improved AMV tags

This commit is contained in:
Eduard Urbach 2018-04-16 17:54:34 +02:00
parent bc27dc99a6
commit ef41a1aa26
3 changed files with 8 additions and 15 deletions

View File

@ -24,7 +24,7 @@
a
display block
margin 0.4rem
margin 0.25rem
img
border-radius ui-element-border-radius

View File

@ -15,16 +15,9 @@ func getOpenGraph(ctx *aero.Context, amv *arn.AMV) *arn.OpenGraph {
"og:site_name": ctx.App.Config.Domain,
"og:type": "video.other",
},
Meta: map[string]string{},
// Meta: map[string]string{},
}
// if amv.MainAnime() != nil {
// openGraph.Tags["og:image"] = amv.MainAnime().ImageLink("large")
// openGraph.Tags["og:description"] = amv.MainAnime().Title.Canonical + " (" + strings.Join(amv.Tags, ", ") + ")"
// } else {
// openGraph.Tags["og:description"] = strings.Join(amv.Tags, ", ")
// }
openGraph.Tags["og:description"] = strings.Join(amv.Tags, ", ")
if amv.File != "" {
@ -33,11 +26,11 @@ func getOpenGraph(ctx *aero.Context, amv *arn.AMV) *arn.OpenGraph {
openGraph.Tags["og:video:width"] = "640"
openGraph.Tags["og:video:height"] = "360"
openGraph.Meta["twitter:player"] = openGraph.Tags["og:video"]
openGraph.Meta["twitter:player:width"] = openGraph.Tags["og:video:width"]
openGraph.Meta["twitter:player:height"] = openGraph.Tags["og:video:height"]
openGraph.Meta["twitter:player:stream"] = openGraph.Tags["og:video"]
openGraph.Meta["twitter:player:stream:content_type"] = openGraph.Tags["og:video:type"]
// openGraph.Meta["twitter:player"] = openGraph.Tags["og:video"]
// openGraph.Meta["twitter:player:width"] = openGraph.Tags["og:video:width"]
// openGraph.Meta["twitter:player:height"] = openGraph.Tags["og:video:height"]
// openGraph.Meta["twitter:player:stream"] = openGraph.Tags["og:video"]
// openGraph.Meta["twitter:player:stream:content_type"] = openGraph.Tags["og:video:type"]
}
return openGraph

View File

@ -1,2 +1,2 @@
.amvs-page
justify-content center !important
justify-content space-evenly !important