flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 7c53875f77af9d5d12db25ab03042cfbbad58fb7
parent 0d5ed8e9275ce2437f4e206961d0ee18eb40b784
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Fri, 30 Oct 2020 22:05:33 -0700

Slight redesign

Diffstat:
Mtemplates/my_site.html | 10++++++++++
Mtemplates/static/style.css | 4+++-
2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/templates/my_site.html b/templates/my_site.html @@ -8,13 +8,20 @@ </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 @@ 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" /> diff --git a/templates/static/style.css b/templates/static/style.css @@ -59,12 +59,14 @@ img { color: blue; } a:visited { + color:blue } a { - transition-duration: 0.2s; + text-decoration: none; } a:hover { background-color: yellow; + text-decoration: underline; }