From 3a97e6fe63ef24648b2c5a2d26b15abfaf0987e5 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 3 Apr 2019 07:26:37 -0700 Subject: [PATCH] cmd/site: fix sitemap --- cmd/site/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/site/main.go b/cmd/site/main.go index 843884d..8d76786 100644 --- a/cmd/site/main.go +++ b/cmd/site/main.go @@ -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