all repos — vite @ f0b087d2355c05708cf48cf832273301e65d1095

a fast (this time, actually) and minimal static site generator

Fix AtomLink having one missing /
Anirudh Oppiliappan x@icyphox.sh
Wed, 29 Sep 2021 09:02:53 +0530
commit

f0b087d2355c05708cf48cf832273301e65d1095

parent

e0dc7bd326a18d8004efd5b706b941b2265ad64b

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M atom/feed.goatom/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"],