Improved twitter card tags

This commit is contained in:
Eduard Urbach 2018-04-16 17:59:34 +02:00
parent f2a3739581
commit d28d1b37db

View File

@ -13,7 +13,7 @@ component Layout(app *aero.Application, ctx *aero.Context, user *arn.User, openG
meta(name="google-site-verification", content="1U-E2pDaYbFHyOSWl6AX3DvixQuDc4kfem9Kde_jZ8A")
if openGraph != nil
if tags["og:video"] != ""
if openGraph.Tags["og:video"] != ""
meta(name="twitter:card", content="player")
else
meta(name="twitter:card", content="summary")