aboutsummaryrefslogtreecommitdiff
path: root/cmd/site/main.go
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-04-03 07:26:37 -0700
committerChristine Dodrill <me@christine.website>2019-04-03 07:26:37 -0700
commit3a97e6fe63ef24648b2c5a2d26b15abfaf0987e5 (patch)
treed217154f021e6ab0dcd2025b08bc7b6dcc4aec37 /cmd/site/main.go
parent0bf1303735a0bd866e497b01366f87753eea8982 (diff)
downloadxesite-3a97e6fe63ef24648b2c5a2d26b15abfaf0987e5.tar.xz
xesite-3a97e6fe63ef24648b2c5a2d26b15abfaf0987e5.zip
cmd/site: fix sitemap
Diffstat (limited to 'cmd/site/main.go')
-rw-r--r--cmd/site/main.go6
1 files changed, 6 insertions, 0 deletions
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