2020-03-21 13:34:37 +03:00
|
|
|
{{define "base"}}
|
2020-10-16 01:21:49 +03:00
|
|
|
{{ $playing := .Playing }}
|
2021-06-08 16:22:14 +03:00
|
|
|
{{ $config := .Config }}
|
2020-03-21 13:34:37 +03:00
|
|
|
<!DOCTYPE html>
|
2020-10-16 01:21:49 +03:00
|
|
|
<html lang="en" prefix="og: https://ogp.me/ns#">
|
2020-03-21 13:34:37 +03:00
|
|
|
<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">
|
2020-03-28 11:13:49 +03:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
2020-03-21 13:34:37 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/theme.css">
|
2020-03-25 02:29:08 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/upload.css">
|
2020-03-27 07:24:44 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/import.css">
|
2020-03-21 13:34:37 +03:00
|
|
|
|
2020-10-16 01:21:49 +03:00
|
|
|
{{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}}
|
|
|
|
|
2020-03-21 13:34:37 +03:00
|
|
|
{{ template "stylesheets" . }}
|
|
|
|
{{ template "css" . }}
|
|
|
|
<title>Tube</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav>
|
|
|
|
<a href="/">Tube</a>
|
2020-03-25 02:29:08 +03:00
|
|
|
<a class="centered" style="text-indent: 0;" href="/upload">Upload</a>
|
2020-03-21 13:34:37 +03:00
|
|
|
</nav>
|
|
|
|
<main>
|
|
|
|
{{template "content" .}}
|
|
|
|
</main>
|
2020-03-25 18:01:35 +03:00
|
|
|
<footer>
|
2021-07-13 01:34:56 +03:00
|
|
|
<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>
|
2021-06-08 16:22:14 +03:00
|
|
|
{{if .Config.Copyright.Content}}<p>{{ $config.Copyright.Content }}</p>{{end}}
|
2020-03-25 18:01:35 +03:00
|
|
|
</footer>
|
2020-03-21 13:34:37 +03:00
|
|
|
</body>
|
|
|
|
{{ template "scripts" . }}
|
|
|
|
</html>
|
|
|
|
{{end}}
|
|
|
|
{{ define "css" }}{{ end }}
|
|
|
|
{{ define "scripts" }}{{ end }}
|
|
|
|
{{ define "stylesheets" }}{{ end }}
|