add twitter summary thing
This commit is contained in:
parent
358486f824
commit
32ddb14345
1 changed files with 9 additions and 5 deletions
|
@ -10,20 +10,24 @@
|
||||||
<meta name="twitter:card" content="player" />
|
<meta name="twitter:card" content="player" />
|
||||||
<meta name="twitter:site" content="@harry" />
|
<meta name="twitter:site" content="@harry" />
|
||||||
<meta name="twitter:title" content="<%= filename %>" />
|
<meta name="twitter:title" content="<%= filename %>" />
|
||||||
<meta name="twitter:description" content="File uploaded to hippoz.xyz" />
|
<meta name="twitter:description" content="Video uploaded to hippoz.xyz" />
|
||||||
<meta name="twitter:player" content="<%= fileUrl %>" />
|
<meta name="twitter:player" content="<%= fileUrl %>" />
|
||||||
<meta name="twitter:player:width" content="320" />
|
<meta name="twitter:player:width" content="320" />
|
||||||
<meta name="twitter:player:height" content="180" />
|
<meta name="twitter:player:height" content="180" />
|
||||||
<meta name="twitter:player:stream" content="<%= fileUrl %>" />
|
<meta name="twitter:player:stream" content="<%= fileUrl %>" />
|
||||||
<meta name="twitter:player:stream:content_type" content="<%= mimeType %>" />
|
<meta name="twitter:player:stream:content_type" content="<%= mimeType %>" />
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<% if (fileType === 'image') { %>
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:site" content="@harry" />
|
||||||
|
<meta name="twitter:title" content="<%= filename %>" />
|
||||||
|
<meta name="twitter:description" content="Image uploaded to hippoz.xyz" />
|
||||||
|
<meta name="twitter:image" content="<%= fileUrl %>" />
|
||||||
|
<% } %>
|
||||||
|
|
||||||
<meta property="og:<%= fileType %>:url" content="<%= fileUrl %>" />
|
<meta property="og:<%= fileType %>:url" content="<%= fileUrl %>" />
|
||||||
<meta property="og:<%= fileType %>:secure_url" content="<%= fileUrl %>" />
|
<meta property="og:<%= fileType %>:secure_url" content="<%= fileUrl %>" />
|
||||||
<meta property="og:<%= fileType %>:type" content="<%= mimeType %>" />
|
<meta property="og:<%= fileType %>:type" content="<%= mimeType %>" />
|
||||||
<% if (fileType === 'video' || fileType === 'image') { %>
|
|
||||||
<meta property="og:<%= fileType %>:width" content="320" />
|
|
||||||
<meta property="og:<%= fileType %>:height" content="180" />
|
|
||||||
<% } %>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in a new issue