all repos — flounder @ 5f0282a052f57ab57e2e96ca2b7d8a33bb5eb2f5

A small site builder for the Gemini protocol

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    <meta name="viewport" content="width=device-width" />
 7    <link rel="stylesheet" type="text/css" href="//{{.Config.Host}}/style.css" />
 8    <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>">
 9  </head>
10  <body>
11<main>
12{{.SiteBody}}
13<br>
14<hr class="thin" \>
15{{$parent := parent .URI.Path}}
16{{ if ne .URI.Path "/"}}
17{{ if ne $parent "/"}}
18<a href="{{parent .URI.Path}}/" title="Go to the parent directory">{{parent .URI.Path}}/</a>
19{{ else }}
20<a href="{{parent .URI.Path}}" title="Go to the parent directory">{{.URI.Host}}/</a>
21{{ end }}
22<br>
23<br>
24{{ end }}
25<div class="footer">
26  <details>
27    <summary>Proxy</summary>
28  Proxied from the original at <a href="{{safeGeminiURL .URI.String}}">{{.URI.String}}</a>  
29    <br>
30  <a href="https://admin.flounder.online/gemini.gmi">About Gemini</a> 
31  <br>
32  <a href="?raw=1">Original page</a></div> 
33  </details>
34</main>
35</body>
36</html>