added dimensions
This commit is contained in:
parent
66075e46b9
commit
6fec04d94b
1 changed files with 3 additions and 1 deletions
|
@ -6,10 +6,12 @@
|
||||||
<title><%= filename %></title>
|
<title><%= filename %></title>
|
||||||
|
|
||||||
<% if (fileType !== 'file') { %>
|
<% if (fileType !== 'file') { %>
|
||||||
<% if (fileType === 'video') { %>
|
<% if (fileType === 'video' || fileType === 'image') { %>
|
||||||
<meta property="og:<%= fileType %>:width" content="320" />
|
<meta property="og:<%= fileType %>:width" content="320" />
|
||||||
<meta property="og:<%= fileType %>:height" content="180" />
|
<meta property="og:<%= fileType %>:height" content="180" />
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
<% if (fileType === 'video') { %>
|
||||||
<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 %>" />
|
||||||
|
|
Loading…
Reference in a new issue