cmd/site: fix sitemap

This commit is contained in:
Cadey Ratio 2019-04-03 07:26:37 -07:00
parent 0bf1303735
commit 3a97e6fe63
1 changed files with 6 additions and 0 deletions

View File

@ -162,6 +162,12 @@ func Build() (*Site, error) {
DatePublished: item.Date,
ContentHTML: string(item.BodyHTML),
})
smi.Add(&sitemap.URL{
Loc: "https://christine.website/" + item.Link,
LastMod: &item.Date,
ChangeFreq: sitemap.Monthly,
})
}
// Add HTTP routes here