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.

Better date formatting

+19 -2
+19 -2
build.go
··· 69 69 posts = append(posts, Post{fm}) 70 70 } 71 71 72 + type NewFm struct { 73 + Template string 74 + URL string 75 + Title string 76 + Subtitle string 77 + Date string 78 + Body string 79 + } 80 + 81 + var newFm = NewFm { 82 + fm.Template, 83 + fm.URL, 84 + fm.Title, 85 + fm.Subtitle, 86 + fm.Date.Time.Format("02 January, 2006"), 87 + fm.Body, 88 + } 72 89 // combine config and matter structs 73 90 combined := struct { 74 91 Cfg Config 75 - Fm Matter 76 - }{cfg, fm} 92 + Fm NewFm 93 + }{cfg, newFm} 77 94 78 95 htmlFile, err := os.Create(filepath.Join(buildPath, "index.html")) 79 96 if err != nil {