cmd/site: show talk viewcounts broken down with blogposts

This commit is contained in:
Cadey Ratio 2019-06-05 13:43:38 +00:00
parent 322b6e5f6b
commit db145a722c
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ func (s *Site) showTalk(w http.ResponseWriter, r *http.Request) {
} }
h.ServeHTTP(w, r) h.ServeHTTP(w, r)
postView.With(prometheus.Labels{"base": filepath.Base(p.Link)}).Inc()
} }
func (s *Site) showPost(w http.ResponseWriter, r *http.Request) { func (s *Site) showPost(w http.ResponseWriter, r *http.Request) {