flounder

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

commit 88e1db0eb18299bf20790ef925581238464ff931
parent e2143b9f2aebf4c25b6e5977743d57470d993b87
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 31 Oct 2021 01:39:57 -0700

fix bug add atom feed link to files

Diffstat:
Mhttp.go | 3++-
Mtemplates/updates.html | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/http.go b/http.go @@ -130,10 +130,11 @@ func updatesHandler(w http.ResponseWriter, r *http.Request) { return } data := struct { + Config Config AuthUser AuthUser User string Files []*File - }{authUser, username, files} + }{c, authUser, username, files} err = t.ExecuteTemplate(w, "updates.html", data) if err != nil { serverError(w, err) diff --git a/templates/updates.html b/templates/updates.html @@ -15,6 +15,7 @@ </div> {{end}} <br> +<a href="//{{$.Config.Host}}/updates/{{.User}}/atom.xml" class='person-link'>Atom Feed</a> <hr class="thin"> Made with <a href="https://github.com/alexwennerberg/flounder">Flounder</a>. <a href="https://www.buymeacoffee.com/alexwennerberg">Donate!</a> {{template "footer" .}}