123 lines
6.3 KiB
HTML
123 lines
6.3 KiB
HTML
{{define "base"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en" {{ with .Theme }}data-theme="{{ . }}"{{ end }}>
|
|
<head>
|
|
{{ if $.Debug }}
|
|
<link href="/css/01-pico.css" rel="stylesheet" />
|
|
<link href="/css/02-icss.css" rel="stylesheet" />
|
|
<link href="/css/03-icons.css" rel="stylesheet" />
|
|
<link href="/css/99-spyda.css" rel="stylesheet" />
|
|
<link rel="icon" type="image/png" href="/img/favicon.png" />
|
|
{{ else }}
|
|
<link href="/css/{{ .Commit }}/spyda.min.css" rel="stylesheet" />
|
|
<link rel="icon" type="image/png" href="/img/{{ .Commit}}/favicon.png" />
|
|
{{ end }}
|
|
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<title>{{ .InstanceName }} {{ .Title }}</title>
|
|
{{ with .Meta.Title }}<meta name="title" content="{{ . }}">{{ end }}
|
|
{{ with .Meta.Author }}<meta name="author" content="{{ . }}">{{ end }}
|
|
{{ with .Meta.Keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
|
|
{{ with .Meta.Description }}<meta name="description" content="{{ . }}">{{ end }}
|
|
|
|
<!-- OpenGraph Meta Tags -->
|
|
{{ with .Meta.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
|
|
{{ with .Meta.Description }}<meta property="og:description" content="{{ . }}">{{ end }}
|
|
{{ with .Meta.UpdatedAt }}<meta property="og:updated_time" content="{{ . }}" />{{ end }}
|
|
{{ with .Meta.Image }}<meta property="og:image" content="{{ . }}">{{ end }}
|
|
{{ with .Meta.URL }}<meta property="og:url" content="{{ . }}">{{ end }}
|
|
<meta property="og:site_name" content="{{ .InstanceName }}">
|
|
</head>
|
|
<body>
|
|
<nav id="mainNav" class="container-fluid">
|
|
<ul>
|
|
<li class="mobile-menu">
|
|
{{ if .Authenticated }}
|
|
<a id="messagesMenu" href="/messages">
|
|
<i class="icss-mail-box"></i>
|
|
{{ if gt $.NewMessages 0 }}
|
|
<span class="badge">{{ $.NewMessages }}</span>
|
|
{{ end }}
|
|
</a>
|
|
{{ end }}
|
|
<a id="burgerMenu" href="javascript:void(0);">
|
|
<i class="icss-bars"></i>
|
|
</a>
|
|
</li>
|
|
<li class="logo">
|
|
<a href="/" class="contrast">
|
|
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 449 249.1" style="enable-background:new 0 0 449 249.1;" height="3.5rem">
|
|
<text fill="currentColor" stroke="null" transform="matrix(4.601517522060248,0,0,4.792145300702714,-346.64939053697765,-247.51953956845873) " xml:space="preserve" text-anchor="start" font-family="sans-serif" font-size="24" id="svg_11" y="88.25283" x="81.50619" fill-opacity="null" stroke-opacity="null" stroke-width="0" fill="#000000">Spyda</text>
|
|
<path fill="currentColor" d="m158.86533,78.53288l66.62425,0.02394l-2.16197,3.00712l-62.27478,-0.07181l-2.1875,-2.95924l0,0zm0.45785,-40.0015l65.73399,-0.07181l1.90767,3.08484l-69.5748,0.02394l1.93314,-3.03697zm-6.48714,20.04421l78.65737,-0.07181l-0.10167,3.08485l-78.50482,-0.04788l-0.05087,-2.96516zm78.72248,0.28612c0,20.42241 -17.65682,37.03625 -39.36355,37.03625c-21.69735,0 -39.35088,-16.61684 -39.35088,-37.03625c0,-20.41951 17.65672,-37.03334 39.35088,-37.03334c21.70673,-0.003 39.36355,16.61384 39.36355,37.03334zm-39.36046,-40.0015c-23.42936,0 -42.49522,17.94299 -42.49522,39.99849c0,22.05851 19.06586,40.0015 42.49522,40.0015c23.44211,0 42.50479,-17.94299 42.50479,-40.0015c0,-22.0555 -19.06268,-39.99849 -42.50479,-39.99849zm11.92535,40.0015c0,21.82305 -6.28249,37.03625 -11.92535,37.03625c-5.63647,0 -11.91887,-15.2132 -11.91887,-37.03625c0,-21.82906 6.2793,-37.03334 11.91887,-37.03334c5.63967,-0.003 11.92535,15.20429 11.92535,37.03334zm-11.92535,-40.0015c-9.78776,0 -15.06958,20.61013 -15.06958,39.99849c0,19.39429 5.28183,40.0015 15.06958,40.0015c9.78786,0 15.07926,-20.61021 15.07926,-40.0015c-0.00319,-19.38837 -5.2914,-39.99849 -15.07926,-39.99849zm27.92911,40.0015c0,20.42241 -12.53328,37.03625 -27.92911,37.03625c-15.39263,0 -27.91954,-16.61684 -27.91954,-37.03625c0,-20.41951 12.52691,-37.03334 27.91954,-37.03334c15.39583,-0.003 27.92911,16.61384 27.92911,37.03334zm-27.92911,-40.0015c-17.12793,0 -31.07025,17.94299 -31.07025,39.99849c0,22.05851 13.94233,40.0015 31.07025,40.0015c17.13431,0 31.07354,-17.94299 31.07354,-40.0015c0,-22.0555 -13.93923,-39.99849 -31.07354,-39.99849z" fill-opacity="null" stroke-opacity="null" stroke-width="null" stroke="null" fill="null"/>
|
|
</svg>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="/">
|
|
<i class="icss-search"></i>
|
|
Search
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="/add">
|
|
<i class="icss-plus"></i>
|
|
Add site...
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<ul>
|
|
{{ if .Authenticated }}
|
|
<li>
|
|
<a class="secondary" href="/manage">
|
|
<i class="icss-gear"></i>
|
|
Manage
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="secondary" href="/logout">
|
|
<i class="icss-exit"></i>
|
|
Logout
|
|
</a>
|
|
</li>
|
|
{{ else }}
|
|
<li>
|
|
<a href="/login">
|
|
<i class="icss-key"></i>
|
|
Login
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
<main class="container">
|
|
{{template "content" . }}
|
|
</main>
|
|
<footer class="container">
|
|
<div class="footer-copyright">
|
|
<a href="https://git.mills.io/prologic/spyda" target="_blank">spyda v{{ .SoftwareVersion }}</a>
|
|
·
|
|
© 2020 <a href="https://github.com/prologic" target="_blank">James Mills</a>. All rights reserved.
|
|
</div>
|
|
<div class="footer-menu">
|
|
<a href="/about" target="_blank" class="menu-item">About</a>
|
|
<a href="/privacy" target="_blank" class="menu-item">Privacy</a>
|
|
<a href="/abuse" target="_blank" class="menu-item">Abuse</a>
|
|
<a href="/help" target="_blank" class="menu-item">Help</a>
|
|
<a href="/support" target="_blank" class="menu-item">Support</a>
|
|
<a href="/atom.xml" target="_blank">Atom <i class="icss-rss"></i></a>
|
|
</div>
|
|
</footer>
|
|
{{ if $.Debug }}
|
|
<script type="application/javascript" src="/js/01-umbrella.js"></script>
|
|
<script type="application/javascript" src="/js/02-polyfill.js"></script>
|
|
<script type="application/javascript" src="/js/03-twix.js"></script>
|
|
<script type="application/javascript" src="/js/99-spyda.js"></script>
|
|
{{ else }}
|
|
<script type="application/javascript" src="/js/{{ .Commit }}/spyda.min.js"></script>
|
|
{{ end }}
|
|
</body>
|
|
</html>
|
|
{{end}}
|