cmd/site: show talk viewcounts broken down with blogposts (#51)
This commit is contained in:
parent
322b6e5f6b
commit
2826a7b1f9
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue