From ef41a1aa2651fa44ce368daa3c1a2154073c40d0 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 16 Apr 2018 17:54:34 +0200 Subject: [PATCH] Improved AMV tags --- pages/amv/amv.scarlet | 2 +- pages/amv/opengraph.go | 19 ++++++------------- pages/amvs/amvs.scarlet | 2 +- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/pages/amv/amv.scarlet b/pages/amv/amv.scarlet index ee3ed6b6..ed2e0c7c 100644 --- a/pages/amv/amv.scarlet +++ b/pages/amv/amv.scarlet @@ -24,7 +24,7 @@ a display block - margin 0.4rem + margin 0.25rem img border-radius ui-element-border-radius diff --git a/pages/amv/opengraph.go b/pages/amv/opengraph.go index fe47f980..66273290 100644 --- a/pages/amv/opengraph.go +++ b/pages/amv/opengraph.go @@ -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 diff --git a/pages/amvs/amvs.scarlet b/pages/amvs/amvs.scarlet index 284e3d06..7c9bf615 100644 --- a/pages/amvs/amvs.scarlet +++ b/pages/amvs/amvs.scarlet @@ -1,2 +1,2 @@ .amvs-page - justify-content center !important \ No newline at end of file + justify-content space-evenly !important \ No newline at end of file