add twitter meta tags
This commit is contained in:
parent
f1ea9987d1
commit
4042535074
1 changed files with 12 additions and 2 deletions
|
@ -7,8 +7,18 @@
|
|||
|
||||
<% if (fileType !== 'file') { %>
|
||||
<% if (fileType === 'video' || fileType === 'image') { %>
|
||||
<meta property="og:<%= fileType %>:width" content="640" />
|
||||
<meta property="og:<%= fileType %>:height" content="426" />
|
||||
<meta property="og:<%= fileType %>:width" content="320" />
|
||||
<meta property="og:<%= fileType %>:height" content="180" />
|
||||
|
||||
<meta name="twitter:card" content="player" />
|
||||
<meta name="twitter:site" content="@harry" />
|
||||
<meta name="twitter:title" content="<%= filename %>" />
|
||||
<meta name="twitter:description" content="File uploaded to hippoz.xyz" />
|
||||
<meta name="twitter:player" content="<%= fileUrl %>" />
|
||||
<meta name="twitter:player:width" content="320" />
|
||||
<meta name="twitter:player:height" content="180" />
|
||||
<meta name="twitter:player:stream" content="<%= fileUrl %>" />
|
||||
<meta name="twitter:player:stream:content_type" content="<%= mimeType %>" />
|
||||
<% } %>
|
||||
<meta property="og:<%= fileType %>" content="<%= fileUrl %>" />
|
||||
<meta property="og:<%= fileType %>:type" content="<%= mimeType %>" />
|
||||
|
|
Loading…
Reference in a new issue