aboutsummaryrefslogtreecommitdiff
path: root/page/time.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-07-12 23:08:58 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-07-12 23:18:44 -0400
commit904e37a88a6a2eab3919f7f2c40bbb2c07544a7c (patch)
tree07ec38801bf572a2933d51d272fc4cd3ab74b61c /page/time.go
parente6d53f71c9718ecdb9fde16a924d75a71aadd2d2 (diff)
downloadgo-website-904e37a88a6a2eab3919f7f2c40bbb2c07544a7c.tar.gz
go-website-904e37a88a6a2eab3919f7f2c40bbb2c07544a7c.tar.xz
Add atom feed to the go website
Diffstat (limited to 'page/time.go')
-rw-r--r--page/time.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/page/time.go b/page/time.go
index 958dc38..0374490 100644
--- a/page/time.go
+++ b/page/time.go
@@ -21,3 +21,8 @@ func (pt *PageTime) UnmarshalYAML(n *yaml.Node) error {
pt.Time = t
return nil
}
+
+func (pt PageTime) MarshalYAML() (interface{}, error) {
+ s := pt.Time.Format(TimeFormat)
+ return s, nil
+}