d4223a9ef7
This fixes #28. Since we only use a single FontAwesome, I decided to just use the SVG (which FontAwesome considers the code comment within appropriate attribution). I further decided "screw it, let's inline it", because it avoids unnecessary complexity, and we can always punt it out to another file later if we need to. Co-authored-by: Jacob Weisz <inbox@jacobweisz.com> Reviewed-on: https://git.mills.io/prologic/tube/pulls/30 Co-authored-by: Jacob Weisz <ocdtrekkie@noreply@mills.io> Co-committed-by: Jacob Weisz <ocdtrekkie@noreply@mills.io>
48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
{{define "base"}}
|
|
{{ $playing := .Playing }}
|
|
{{ $config := .Config }}
|
|
<!DOCTYPE html>
|
|
<html lang="en" prefix="og: https://ogp.me/ns#">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico">
|
|
<link rel="stylesheet" type="text/css" href="/static/theme.css">
|
|
<link rel="stylesheet" type="text/css" href="/static/upload.css">
|
|
<link rel="stylesheet" type="text/css" href="/static/import.css">
|
|
|
|
{{if $playing.ID}}
|
|
<meta property="og:title" content="{{$playing.Title}}"/>
|
|
<meta property="og:type" content="video.other"/>
|
|
<meta property="og:image" content="/t/{{ $playing.ID}}"/>
|
|
<meta property="og:video" content="/v/{{ $playing.ID }}.mp4">
|
|
<meta property="og:video:url" content="/v/{{ $playing.ID }}.mp4">
|
|
<meta property="og:video:secure_url" content="/v/{{ $playing.ID }}.mp4">
|
|
<meta property="og:description" content="{{$playing.Description}}"/>
|
|
<meta property="og:site_name" content="Tube"/>
|
|
<meta property="og:url" content="/v/{{ $playing.ID }}"/>
|
|
{{end}}
|
|
|
|
{{ template "stylesheets" . }}
|
|
{{ template "css" . }}
|
|
<title>Tube</title>
|
|
</head>
|
|
<body>
|
|
<nav>
|
|
<a href="/">Tube</a>
|
|
<a class="centered" style="text-indent: 0;" href="/upload">Upload</a>
|
|
</nav>
|
|
<main>
|
|
{{template "content" .}}
|
|
</main>
|
|
<footer>
|
|
<p><a href="https://git.mills.io/prologic/tube">Tube</a> is CopyRight © 2020 <a href="https://git.mills.io/prologic">James Mills / prologic</a>. All Rights Reserved.</p>
|
|
{{if .Config.Copyright.Content}}<p>{{ $config.Copyright.Content }}</p>{{end}}
|
|
</footer>
|
|
</body>
|
|
{{ template "scripts" . }}
|
|
</html>
|
|
{{end}}
|
|
{{ define "css" }}{{ end }}
|
|
{{ define "scripts" }}{{ end }}
|
|
{{ define "stylesheets" }}{{ end }}
|