From e4d7c3c2691acad73d6240ff0c9b208273b95997 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 12 Sep 2019 22:56:43 +0000 Subject: oops --- cmd/site/html.go | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'cmd') diff --git a/cmd/site/html.go b/cmd/site/html.go index a1d5040..c91216c 100644 --- a/cmd/site/html.go +++ b/cmd/site/html.go @@ -175,19 +175,20 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) { const dateFormat = `2006-01-02` s.renderTemplatePage("blogpost.html", struct { - Title string - Link string - BodyHTML template.HTML - Date string - Series string - Tags string + Title string + Link string + BodyHTML template.HTML + Date string + Series, SeriesTag string + Tags string }{ - Title: p.Title, - Link: p.Link, - BodyHTML: p.BodyHTML, - Date: p.Date.Format(dateFormat), - Series: strings.ReplaceAll(p.Series, "-", ""), - Tags: tags, + Title: p.Title, + Link: p.Link, + BodyHTML: p.BodyHTML, + Date: p.Date.Format(dateFormat), + Series: p.Series, + SeriesTag: strings.ReplaceAll(p.Series, "-", ""), + Tags: tags, }).ServeHTTP(w, r) postView.With(prometheus.Labels{"base": filepath.Base(p.Link)}).Inc() } -- cgit v1.2.3