first commit
This commit is contained in:
46
templates/base.html
Normal file
46
templates/base.html
Normal file
@@ -0,0 +1,46 @@
|
||||
{{define "base"}}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{block "title" .Inner}}paste.ridgwaysystems.org{{end}}</title>
|
||||
<meta name="description" content="{{block "meta-desc" .Inner}}A self-hosted code paste service.{{end}}">
|
||||
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
<link rel="stylesheet" href="/static/css/syntax.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<nav class="nav">
|
||||
<a href="/" class="nav-brand">paste.ridgwaysystems.org</a>
|
||||
<ul class="nav-links">
|
||||
<li><a href="/">pastes</a></li>
|
||||
{{if .IsAdmin}}
|
||||
<li><a href="/new">new paste</a></li>
|
||||
<li><a href="/admin">admin</a></li>
|
||||
<li>
|
||||
<form method="POST" action="/admin/logout" class="inline-form">
|
||||
<input type="hidden" name="csrf_token" value="">
|
||||
<button type="submit" class="nav-logout-btn">logout</button>
|
||||
</form>
|
||||
</li>
|
||||
{{end}}
|
||||
<li><a href="https://ridgwaysystems.org">ridgwaysystems.org →</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="main-content">
|
||||
{{block "content" .Inner}}{{end}}
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<p>
|
||||
<a href="/">paste.ridgwaysystems.org</a> —
|
||||
<a href="https://ridgwaysystems.org">ridgwaysystems.org</a> —
|
||||
self-hosted on FreeBSD
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user