templates/user_page.html (view raw)
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <title>{{.PageTitle }}</title>
6 {{ if eq .URI.Path "/gemlog" }}
7 <link rel="alternate" type="application/atom+xml"
8 title="Atom Feed"
9 href="./atom.xml" />
10 {{ end }}
11 <meta name="viewport" content="width=device-width" />
12 <link rel="stylesheet" type="text/css" href="//{{.Config.Host}}/style.css" />
13 <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{.Favicon}}</text></svg>">
14 </head>
15 <body>
16<main>
17{{.SiteBody}}
18<br>
19<hr class="thin" \>
20{{$parent := parent .URI.Path}}
21{{ if ne .URI.Path "/"}}
22{{ if ne $parent "/"}}
23<a href="{{parent .URI.Path}}/" title="Go to the parent directory">{{parent .URI.Path}}/</a>
24{{ else }}
25<a href="{{parent .URI.Path}}" title="Go to the parent directory">{{.URI.Host}}/</a>
26{{ end }}
27<br>
28<br>
29{{ end }}
30<div class="footer">
31 <details>
32 <summary>Proxy</summary>
33 Proxied from the <a href="?raw=1">original</a> at <a href="{{safeGeminiURL .GeminiURI.String}}">{{.GeminiURI.String}}</a>
34 <br>
35 <a href="https://admin.flounder.online/gemini.gmi">About Gemini</a><br>
36 <a href="https://{{.Config.Host}}">Hosted on {{.Config.SiteTitle}}</a></div>
37 </details>
38</main>
39</body>
40</html>