Improved AMV tags
This commit is contained in:
parent
bc27dc99a6
commit
ef41a1aa26
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
a
|
a
|
||||||
display block
|
display block
|
||||||
margin 0.4rem
|
margin 0.25rem
|
||||||
|
|
||||||
img
|
img
|
||||||
border-radius ui-element-border-radius
|
border-radius ui-element-border-radius
|
||||||
|
@ -15,16 +15,9 @@ func getOpenGraph(ctx *aero.Context, amv *arn.AMV) *arn.OpenGraph {
|
|||||||
"og:site_name": ctx.App.Config.Domain,
|
"og:site_name": ctx.App.Config.Domain,
|
||||||
"og:type": "video.other",
|
"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, ", ")
|
openGraph.Tags["og:description"] = strings.Join(amv.Tags, ", ")
|
||||||
|
|
||||||
if amv.File != "" {
|
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:width"] = "640"
|
||||||
openGraph.Tags["og:video:height"] = "360"
|
openGraph.Tags["og:video:height"] = "360"
|
||||||
|
|
||||||
openGraph.Meta["twitter:player"] = openGraph.Tags["og:video"]
|
// openGraph.Meta["twitter:player"] = openGraph.Tags["og:video"]
|
||||||
openGraph.Meta["twitter:player:width"] = openGraph.Tags["og:video:width"]
|
// openGraph.Meta["twitter:player:width"] = openGraph.Tags["og:video:width"]
|
||||||
openGraph.Meta["twitter:player:height"] = openGraph.Tags["og:video:height"]
|
// openGraph.Meta["twitter:player:height"] = openGraph.Tags["og:video:height"]
|
||||||
openGraph.Meta["twitter:player:stream"] = openGraph.Tags["og:video"]
|
// 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:stream:content_type"] = openGraph.Tags["og:video:type"]
|
||||||
}
|
}
|
||||||
|
|
||||||
return openGraph
|
return openGraph
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
.amvs-page
|
.amvs-page
|
||||||
justify-content center !important
|
justify-content space-evenly !important
|
Loading…
Reference in New Issue
Block a user