flounder

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

commit 9c0e563853c52e7790c21f7b740e01ef0c344f0d
parent 75ee30e9bcc131ad3e51845a13987193f788dcf1
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Tue, 15 Dec 2020 20:37:05 -0800

set empty scheme

Diffstat:
Mgemfeed.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/gemfeed.go b/gemfeed.go @@ -97,6 +97,7 @@ func ParseGemfeed(text io.Reader, baseUrl url.URL, limit int) (*Gemfeed, error) parsedUrl.Host = baseUrl.Host parsedUrl.Path = path.Join(path.Dir(baseUrl.Path), parsedUrl.Path) } + parsedUrl.Scheme = "" if time.Now().After(date) { title := strings.Trim(splits[1][10:], " -\t") fe := FeedEntry{title, parsedUrl, date, dateString, &gf}