templates/user_page.html (view raw)
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <link rel="preconnect" href="https://fonts.gstatic.com">
5 <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
6 <meta charset="utf-8" />
7 <title>{{.PageTitle }}</title>
8 {{ if eq .URI.Path "/gemlog" }}
9 <link rel="alternate" type="application/atom+xml"
10 title="Atom Feed"
11 href="./atom.xml" />
12 {{ end }}
13 <meta name="viewport" content="width=device-width" />
14 <link rel="stylesheet" type="text/css" href="//{{.Config.Host}}/style.css" />
15 </head>
16 <body>
17<main>
18{{.SiteBody}}
19<br>
20<hr class="thin" \>
21{{$parent := parent .URI.Path}}
22{{ if ne .URI.Path "/"}}
23{{ if ne $parent "/"}}
24<a href="{{parent .URI.Path}}/" title="Go to the parent directory">{{parent .URI.Path}}/</a>
25{{ else }}
26<a href="{{parent .URI.Path}}" title="Go to the parent directory">{{.URI.Host}}/</a>
27{{ end }}
28<br>
29<br>
30{{ end }}
31<div class="footer">
32 <details>
33 <summary>Proxy</summary>
34 Proxied from the <a href="?raw=1">original</a> at <a href="{{safeGeminiURL .GeminiURI.String}}">{{.GeminiURI.String}}</a>
35 <br>
36 <a href="https://admin.flounder.online/gemini.gmi">About Gemini</a><br>
37 <a href="https://{{.Config.Host}}">Hosted on {{.Config.SiteTitle}}</a></div>
38 </details>
39</main>
40</body>
41</html>