flounder

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

commit 626e7b5eaa056f89433dd6c6ed35bd2105244572
parent 86de71d51fddcf701a36c73f76e941f37e14a19d
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 21 Feb 2021 13:45:22 -0800

Add edit links on homepage

Diffstat:
Mtemplates/index.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/index.html b/templates/index.html @@ -12,7 +12,7 @@ Welcome to {{.Config.SiteTitle}}! For more information and site updates, check o <em>{{.TimeAgo}}</em> <a href="//{{.Creator}}.{{$.Config.Host}}/{{.Name}}"> {{ .Name}} - </a> + </a> {{ if eq .Creator $.AuthUser.Username }} (<a href="//{{$.Config.Host}}/edit/{{.Name}}">edit</a>){{ end}} </div> {{end}} <br>