cmd/site: show talk viewcounts broken down with blogposts (#51)

This commit is contained in:
Cadey Ratio 2019-06-05 09:45:21 -04:00 committed by GitHub
parent 322b6e5f6b
commit 2826a7b1f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {