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]]
|
||||
name = "pict-rs-proxy"
|
||||
version = "0.4.0-alpha.2"
|
||||
version = "0.4.0-alpha.3"
|
||||
dependencies = [
|
||||
"actix-rt",
|
||||
"actix-web",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "pict-rs-proxy"
|
||||
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>"]
|
||||
license = "AGPL-3.0"
|
||||
readme = "README.md"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<meta property="og:video:height" content="@image.height()" />
|
||||
<meta property="og:type" content="video" />
|
||||
<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:height" content="@image.height()" />
|
||||
@if let Some(size) = sizes.last() {
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
<meta property="og:video:height" content="@image.height()" />
|
||||
<meta property="og:type" content="video" />
|
||||
<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:height" content="@image.height()" />
|
||||
@if let Some(size) = max_size {
|
||||
|
|
Loading…
Reference in a new issue