all repos — flounder @ 729f3dd39dab2712dfb264dd67fb8b4aa1d7605a

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="https://flounder.online/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{{$parent := parent .URI.Path}}
15{{ if ne .URI.Path "/"}}
16{{ if ne $parent "/"}}
17<a href="{{parent .URI.Path}}/" title="Go to the parent directory">{{parent .URI.Path}}/</a>
18{{ else }}
19<a href="{{parent .URI.Path}}" title="Go to the parent directory">{{parent .URI.Path}}</a>
20{{ end }}
21<br>
22<br>
23{{ end }}
24<div class="footer">
25  Proxied from the original at <a href="{{.URI.String}}">{{.URI.String}}</a>  (<a href="https://admin.flounder.online/gemini.gmi">about Gemini</a>) <a href="?raw=1">raw</a></div> 
26</main>
27</body>
28</html>