fork of anirudh.fi/vite that uses chroma for hl
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Generate static ids

+7 -1
+7 -1
atom/feed.go
··· 2 2 3 3 import ( 4 4 "encoding/xml" 5 + "fmt" 5 6 "path/filepath" 6 7 "time" 7 8 ··· 63 64 entry := AtomEntry{ 64 65 Title: p.Meta["title"], 65 66 Updated: rfc3339, 66 - ID: NewUUID().String(), 67 + ID: fmt.Sprintf( 68 + "tag:%s,%s:%s", 69 + config.URL, 70 + dateStr, 71 + filepath.Join(srcDir, p.Meta["slug"]), 72 + ), 67 73 Link: &AtomLink{Href: filepath.Join(config.URL, srcDir, p.Meta["slug"])}, 68 74 Summary: &AtomSummary{Content: string(p.HTML), Type: "html"}, 69 75 }