all repos — flounder @ 189e8335353ec3b951d337e7fa4346cfadc80035

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  Proxied from the original at <a href="{{safeGeminiURL .URI.String}}">{{.URI.String}}</a>  (<a href="https://admin.flounder.online/gemini.gmi">about Gemini</a>) <a href="?raw=1">raw</a></div> 
27</main>
28</body>
29</html>