first commit
This commit is contained in:
commit
8c4dcae475
89 changed files with 24623 additions and 0 deletions
35
templates/base.html
Normal file
35
templates/base.html
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en"{{ if .Theme }} data-theme="{{ .Theme }}"{{ end }}>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ block "title" . }}Snowden Archive{{ end }}</title>
|
||||
<link rel="stylesheet" href="{{ asset "style.css" }}">
|
||||
<script src="{{ asset "main.js" }}" defer></script>
|
||||
{{ block "head" . }}{{ end }}
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#main">Skip to main content</a>
|
||||
<nav class="site-nav">
|
||||
<a href="/" class="{{ if eq .Nav "home" }}active{{ end }}">Home</a>
|
||||
<a href="/browse" class="{{ if eq .Nav "browse" }}active{{ end }}">Browse</a>
|
||||
<a href="/search" class="{{ if eq .Nav "search" }}active{{ end }}">Search</a>
|
||||
<a href="/articles" class="{{ if eq .Nav "articles" }}active{{ end }}">Articles</a>
|
||||
<a href="/glossary" class="{{ if eq .Nav "glossary" }}active{{ end }}">Glossary</a>
|
||||
<a href="/random">Random</a>
|
||||
<a href="/about" class="{{ if eq .Nav "about" }}active{{ end }}">About</a>
|
||||
<a href="/pinned" class="nav-right{{ if eq .Nav "pinned" }} active{{ end }}">Pinned</a>
|
||||
<a href="/preferences" class="{{ if eq .Nav "preferences" }}active{{ end }}">Preferences</a>
|
||||
</nav>
|
||||
{{ if .ShowCatBoxes }}{{ template "cat-boxes" . }}{{ end }}
|
||||
<main id="main" tabindex="-1">
|
||||
{{ block "content" . }}{{ end }}
|
||||
</main>
|
||||
<footer>
|
||||
{{ $b := buildInfo }}
|
||||
<p>Snowden Archive · <a href="/changelog">changelog</a>
|
||||
<span class="build-info faint">· rev {{ $b.Commit }}</span>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue