tube/templates/base.html

50 lines
2 KiB
HTML
Raw Normal View History

2020-03-21 13:34:37 +03:00
{{define "base"}}
{{ $playing := .Playing }}
{{ $config := .Config }}
2020-03-21 13:34:37 +03:00
<!DOCTYPE html>
<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">
<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">
<link rel="stylesheet" type="text/css" href="/static/import.css">
2020-03-21 13:34:37 +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>
{{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 }}