all repos — flounder @ 7c53875f77af9d5d12db25ab03042cfbbad58fb7

A small site builder for the Gemini protocol

Slight redesign
alex wennerberg alex@alexwennerberg.com
Fri, 30 Oct 2020 22:05:33 -0700
commit

7c53875f77af9d5d12db25ab03042cfbbad58fb7

parent

0d5ed8e9275ce2437f4e206961d0ee18eb40b784

2 files changed, 13 insertions(+), 1 deletions(-)

jump to
M templates/my_site.htmltemplates/my_site.html

@@ -8,13 +8,20 @@ </a>

</h1> {{template "nav.html" .}} <h3>Your files:</h3> +<table> {{ range .Files }} +<tr> <div> + <td> <a href="//{{$authUser}}.{{$domain}}/{{.Name}}"> {{ .Name }}</a> + </td> + <td> {{ if .IsText }} <a href="/edit/{{.Name}}">edit</a> {{ end }} + </td> + <td> <form action="/delete/{{.Name}}" method="POST" class="inline"> <input class="button delete"

@@ -22,9 +29,12 @@ type="submit"

onclick="return confirm('Are you sure you want to delete this file?');" value="delete" /> + </td> </form> </div> +</tr> {{ end }} +</table> <h3>Create file by name:</h3> <noscript>Create a new page by going to /edit/[filename]</noscript> <input id="edit_new" size=32 placeholder="New filename, e.g. newfile.gmi" />
M templates/static/style.csstemplates/static/style.css

@@ -59,12 +59,14 @@ .nav {

color: blue; } a:visited { + color:blue } a { - transition-duration: 0.2s; + text-decoration: none; } a:hover { background-color: yellow; + text-decoration: underline; }