quad-j/views/file.ejs
2020-10-02 21:07:57 +03:00

24 lines
No EOL
804 B
Text

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= filename %></title>
<meta property="og:title" content="<%= filename %>" />
<meta property="og:description" content="Just a file..." />
<meta property="og:site_name" content="hippoz.xyz" />
<% if (fileType !== 'file') { %>
<meta property="og:<%= fileType %>" content="<%= fileUrl %>" />
<meta property="og:<%= fileType %>:type" content="<%= mimeType %>" />
<% } %>
</head>
<body>
<% if (fileType !== 'file' && fileType !== 'image') { %>
<<%= fileType %> controls name="media" />
<source src="<%= fileUrl %>" type="<%= mimeType %>">
</<%= fileType %>>
<% } %>
</body>
</html>