Add twitter:player link
This commit is contained in:
parent
277efc2691
commit
16dbc8e3c5
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1252,7 +1252,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pict-rs-proxy"
|
name = "pict-rs-proxy"
|
||||||
version = "0.4.0-alpha.2"
|
version = "0.4.0-alpha.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-rt",
|
"actix-rt",
|
||||||
"actix-web",
|
"actix-web",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pict-rs-proxy"
|
name = "pict-rs-proxy"
|
||||||
description = "A simple web frontend for pict-rs"
|
description = "A simple web frontend for pict-rs"
|
||||||
version = "0.4.0-alpha.2"
|
version = "0.4.0-alpha.3"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
<meta property="og:video:height" content="@image.height()" />
|
<meta property="og:video:height" content="@image.height()" />
|
||||||
<meta property="og:type" content="video" />
|
<meta property="og:type" content="video" />
|
||||||
<meta property="twitter:card" content="player" />
|
<meta property="twitter:card" content="player" />
|
||||||
|
<meta property="twitter:player" content="@image.link()" />
|
||||||
<meta property="twitter:player:width" content="@image.width()" />
|
<meta property="twitter:player:width" content="@image.width()" />
|
||||||
<meta property="twitter:player:height" content="@image.height()" />
|
<meta property="twitter:player:height" content="@image.height()" />
|
||||||
@if let Some(size) = sizes.last() {
|
@if let Some(size) = sizes.last() {
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
<meta property="og:video:height" content="@image.height()" />
|
<meta property="og:video:height" content="@image.height()" />
|
||||||
<meta property="og:type" content="video" />
|
<meta property="og:type" content="video" />
|
||||||
<meta property="twitter:card" content="player" />
|
<meta property="twitter:card" content="player" />
|
||||||
|
<meta property="twitter:player" content="@image.link()" />
|
||||||
<meta property="twitter:player:width" content="@image.width()" />
|
<meta property="twitter:player:width" content="@image.width()" />
|
||||||
<meta property="twitter:player:height" content="@image.height()" />
|
<meta property="twitter:player:height" content="@image.height()" />
|
||||||
@if let Some(size) = max_size {
|
@if let Some(size) = max_size {
|
||||||
|
|
Loading…
Reference in a new issue