all repos — vite @ 6855b44d8edaf25b35bde2461a106b3705b061c1

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

Fix AtomLink
Anirudh Oppiliappan x@icyphox.sh
Fri, 06 Aug 2021 08:43:05 +0530
commit

6855b44d8edaf25b35bde2461a106b3705b061c1

parent

36426bd1e020a74b014fdda6291e049ad9ed8b8a

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

jump to
M atom/feed.goatom/feed.go

@@ -2,6 +2,7 @@ package atom

import ( "encoding/xml" + "path/filepath" "time" "git.icyphox.sh/vite/config"

@@ -63,7 +64,7 @@ entry := AtomEntry{

Title: p.Meta["title"], Updated: rfc3339, ID: NewUUID().String(), - Link: &AtomLink{Href: config.URL + srcDir + p.Meta["slug"]}, + Link: &AtomLink{Href: filepath.Join(config.URL, srcDir, p.Meta["slug"])}, Summary: &AtomSummary{Content: string(p.HTML), Type: "html"}, } entries = append(entries, entry)