Fix AtomLink having one missing /
Anirudh Oppiliappan x@icyphox.sh
Wed, 29 Sep 2021 09:02:53 +0530
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
atom/feed.go
→
atom/feed.go
@@ -72,7 +72,8 @@ cfg.URL[8:], // strip https://
dateStr, filepath.Join(srcDir, p.Meta["slug"]), ), - Link: &AtomLink{Href: filepath.Join(cfg.URL, srcDir, p.Meta["slug"])}, + // filepath.Join strips the second / in http:// + Link: &AtomLink{Href: cfg.URL + filepath.Join(srcDir, p.Meta["slug"])}, Summary: &AtomSummary{ Content: fmt.Sprintf("<h2>%s</h2>\n%s", p.Meta["subtitle"],