move meta tags to template, begin of user portal
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
{{define "menu"}}
|
||||
<div id="navigation" class="highlight_light border_top border_bottom navigation">
|
||||
<a href="/">Home</a>
|
||||
<a href="/history">My Files</a>
|
||||
<a href="{{if .Authenticated}}/files{{else}}/history{{end}}">My Files</a>
|
||||
<a href="/api">API</a>
|
||||
{{if .Authenticated}}<a href="/user">{{.Username}}</a>{{else}}
|
||||
{{if .Authenticated}}<a href="/user">{{.Username}}</a>
|
||||
<a href="/logout" style="vertical-align: 0.6em; font-size: 0.9em; padding: 1px;">(Log out)</a>{{else}}
|
||||
<a href="/login">Login</a>
|
||||
<a href="/register">Register</a>
|
||||
{{end}}
|
||||
|
26
res/template/fragments/metatags.html
Normal file
26
res/template/fragments/metatags.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{{define "meta_tags"}}
|
||||
<title>{{.}} ~ PixelDrain</title>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="stylesheet" href="/global.css"/>
|
||||
<link rel="stylesheet" href="/res/style/layout.css"/>
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'/>
|
||||
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css"/>
|
||||
<link rel="shortcut icon" href="/res/img/tray32.png"/>
|
||||
<meta name="theme-color" content="#9FCF6C"/>
|
||||
<link rel="icon" sizes="180x180" href="/res/img/pixeldrain.png"/>
|
||||
<link rel="icon" sizes="256x256" href="/res/img/pixeldrain_big.png"/>
|
||||
{{template "bgpattern"}}
|
||||
|
||||
<meta name="description" content="PixelDrain is a free file sharing service, you
|
||||
can upload any file and you will be given a shareable link right away.
|
||||
PixelDrain also supports previews for images, videos, audio, PDFs and much more.
|
||||
Uncensored, unmonitored and unmoderated."/>
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="{{.}} ~ PixelDrain" />
|
||||
<meta property="og:site_name" content="PixelDrain" />
|
||||
<meta property="og:description" content="Instant file and screenshot sharing." />
|
||||
<meta property="og:url" content="http://pixeldra.in/" />
|
||||
<meta property="og:image" content="/res/img/pixeldrain_big.png" />
|
||||
<meta property="og:image:type" content="image/png" />
|
||||
{{end}}
|
Reference in New Issue
Block a user