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 </head>
14 <body>
15<main>
16{{.SiteBody}}
17<br>
18<hr class="thin" \>
19{{$parent := parent .URI.Path}}
20{{ if ne .URI.Path "/"}}
21{{ if ne $parent "/"}}
22<a href="{{parent .URI.Path}}/" title="Go to the parent directory">{{parent .URI.Path}}/</a>
23{{ else }}
24<a href="{{parent .URI.Path}}" title="Go to the parent directory">{{.URI.Host}}/</a>
25{{ end }}
26<br>
27<br>
28{{ end }}
29<div class="footer">
30 <details>
31 <summary>Proxy</summary>
32 Proxied from the <a href="?raw=1">original</a> at <a href="{{safeGeminiURL .GeminiURI.String}}">{{.GeminiURI.String}}</a>
33 <br>
34 <a href="https://admin.flounder.online/gemini.gmi">About Gemini</a><br>
35 <a href="https://{{.Config.Host}}">Hosted on {{.Config.SiteTitle}}</a></div>
36 </details>
37</main>
38</body>
39</html>