this lets us send opengraph tags in the response :D might make the player also be server-side rendered as well
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>{{ title ?? "(untitled)" }} | video.cerulea.blue</title>
|
|
<link rel="stylesheet" href="/css/styles.css" />
|
|
|
|
<meta property="og:title" content="{{ title ?? "(untitled)" }}" />
|
|
{{ if description }}
|
|
<meta property="og:description" content="{{ description }}" />
|
|
{{ /if }}
|
|
<meta property="og:type" content="video.other" />
|
|
<meta property="og:url" content="{{ pageUrl }}" />
|
|
{{ if videoUrl }}
|
|
<meta property="og:video" content="{{ videoUrl }}" />
|
|
<meta property="og:video:url" content="{{ videoUrl }}" />
|
|
<meta property="og:video:type" content="{{ videoType ?? "video/mp4" }}" />
|
|
{{ /if }}
|
|
|
|
<meta name="twitter:card" content="player" />
|
|
<meta name="twitter:title" content="{{ title ?? "(untitled)" }}" />
|
|
{{ if description }}
|
|
<meta name="twitter:description" content="{{ description }}" />
|
|
{{ /if }}
|
|
{{ if videoUrl }}
|
|
<meta name="twitter:player" content="{{ pageUrl }}" />
|
|
<meta name="twitter:player:stream" content="{{ videoUrl }}" />
|
|
<meta name="twitter:player:stream:content_type" content="{{ videoType ?? "video/mp4" }}" />
|
|
{{ /if }}
|
|
</head>
|
|
|
|
<body>
|
|
<main>
|
|
<div id="player"></div>
|
|
</main>
|
|
|
|
<script src="/dist/viewer.js" type="module"></script>
|
|
</body>
|
|
</html>
|