diff options
| author | Mitchell Riedstra <mitch@x230.my.domain> | 2021-07-11 11:55:47 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@x230.my.domain> | 2021-07-11 11:55:47 -0400 |
| commit | 1c6c1f1597b71f4d4f3a1722655b8864c0d33e6d (patch) | |
| tree | 023701c9d033269d83be8415809b292ae1f3cee0 /page/time.go | |
| parent | e6d53f71c9718ecdb9fde16a924d75a71aadd2d2 (diff) | |
| download | go-website-1c6c1f1597b71f4d4f3a1722655b8864c0d33e6d.tar.gz go-website-1c6c1f1597b71f4d4f3a1722655b8864c0d33e6d.tar.xz | |
Initial banging away at adding an Atom feed to the site
Diffstat (limited to 'page/time.go')
| -rw-r--r-- | page/time.go | 5 |
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 +} |
