flounder

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

commit 997dff1f2a7f48e1875847e96cac27da488e5c26
parent 4f3314b9ff2dac956b2e34369bc1bd0bcad1d606
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Mon, 28 Dec 2020 10:27:59 -0800

bugfixes

Diffstat:
Mgemfeed.go | 2+-
Mgemini.go | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gemfeed.go b/gemfeed.go @@ -68,7 +68,7 @@ func generateFeedFromUser(user string) *Gemfeed { // NOTE: assumes sanitized input u := urlFromPath(gemlogFolderPath) feed := Gemfeed{ - Title: user + "'s Gemlog", + Title: strings.Title(user) + "'s Gemlog", Creator: user, Url: &u, } diff --git a/gemini.go b/gemini.go @@ -24,7 +24,7 @@ func generateGemfeedPage(user string) string { Host string Title string FeedEntries []FeedEntry - }{c.Host, strings.ToTitle(user) + "'s Gemlog", feed.Entries} + }{c.Host, feed.Title, feed.Entries} var buff bytes.Buffer gt.ExecuteTemplate(&buff, "gemfeed.gmi", data) return buff.String()