diff options
Diffstat (limited to 'cmd/build/build.go')
-rw-r--r-- | cmd/build/build.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/build/build.go b/cmd/build/build.go index ecc40a8..a8ce710 100644 --- a/cmd/build/build.go +++ b/cmd/build/build.go @@ -334,7 +334,7 @@ func renderFeed(title string, config Config, posts []Post, specific string) (io. doc, err := xmlquery.Parse(reader) feed := doc.SelectElement("feed") feed.SelectElement("title").FirstChild.Data = title - feed.SelectElement("link").SetAttr("href", config.BaseURL) + feed.SelectElement("link").SetAttr("href", config.BaseURL.String()) feed.SelectElement("id").FirstChild.Data = MakeTagURI(config, specific) datetime, err := posts[0].Date.UTC().MarshalText() feed.SelectElement("updated").FirstChild.Data = string(datetime) @@ -342,7 +342,7 @@ func renderFeed(title string, config Config, posts []Post, specific string) (io. xmlquery.RemoveFromTree(tpl) for _, post := range posts { - fullURL, err := url.JoinPath(config.BaseURL, post.URL) + fullURL, err := url.JoinPath(config.BaseURL.String(), post.URL) if err != nil { return nil, err } |