diff options
| author | Christine Dodrill <me@christine.website> | 2019-04-03 07:26:37 -0700 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2019-04-03 07:26:37 -0700 |
| commit | 3a97e6fe63ef24648b2c5a2d26b15abfaf0987e5 (patch) | |
| tree | d217154f021e6ab0dcd2025b08bc7b6dcc4aec37 /cmd/site/main.go | |
| parent | 0bf1303735a0bd866e497b01366f87753eea8982 (diff) | |
| download | xesite-3a97e6fe63ef24648b2c5a2d26b15abfaf0987e5.tar.xz xesite-3a97e6fe63ef24648b2c5a2d26b15abfaf0987e5.zip | |
cmd/site: fix sitemap
Diffstat (limited to 'cmd/site/main.go')
| -rw-r--r-- | cmd/site/main.go | 6 |
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 |
