diff options
| author | Christine Dodrill <me@christine.website> | 2019-10-23 13:16:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-23 13:16:18 -0400 |
| commit | 78e50f6ce0a45515a360ebef889269a9ead8ef43 (patch) | |
| tree | 2f553dd434897e7b09c602904f7ac17e629bae21 /cmd | |
| parent | 267176954fbfcab087cf269acc0155dae7a21fc8 (diff) | |
| download | xesite-78e50f6ce0a45515a360ebef889269a9ead8ef43.tar.xz xesite-78e50f6ce0a45515a360ebef889269a9ead8ef43.zip | |
cmd/site: change date format (#89)
* cmd/site: change date format
* internal: begone comma
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/site/html.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/site/html.go b/cmd/site/html.go index c91216c..558dc71 100644 --- a/cmd/site/html.go +++ b/cmd/site/html.go @@ -120,7 +120,6 @@ func (s *Site) showTalk(w http.ResponseWriter, r *http.Request) { return } - const dateFormat = `2006-01-02` h := s.renderTemplatePage("talkpost.html", struct { Title string Link string @@ -131,7 +130,7 @@ func (s *Site) showTalk(w http.ResponseWriter, r *http.Request) { Title: p.Title, Link: p.Link, BodyHTML: p.BodyHTML, - Date: p.Date.Format(dateFormat), + Date: internal.IOS13Detri(p.Date), SlidesLink: p.SlidesLink, }) @@ -173,7 +172,6 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) { } } - const dateFormat = `2006-01-02` s.renderTemplatePage("blogpost.html", struct { Title string Link string @@ -185,7 +183,7 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) { Title: p.Title, Link: p.Link, BodyHTML: p.BodyHTML, - Date: p.Date.Format(dateFormat), + Date: internal.IOS13Detri(p.Date), Series: p.Series, SeriesTag: strings.ReplaceAll(p.Series, "-", ""), Tags: tags, |
