aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2019-06-05 09:45:21 -0400
committerGitHub <noreply@github.com>2019-06-05 09:45:21 -0400
commit2826a7b1f950d0254d82b2e2728c1baefb31b146 (patch)
treec6da381521200543b47580a8ed1cc6a2d26f04d4 /cmd
parent322b6e5f6bbd7da161447267f4da021bbf78d630 (diff)
downloadxesite-2826a7b1f950d0254d82b2e2728c1baefb31b146.tar.xz
xesite-2826a7b1f950d0254d82b2e2728c1baefb31b146.zip
cmd/site: show talk viewcounts broken down with blogposts (#51)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/site/html.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/site/html.go b/cmd/site/html.go
index b3fa484..33bdd0f 100644
--- a/cmd/site/html.go
+++ b/cmd/site/html.go
@@ -111,6 +111,7 @@ func (s *Site) showTalk(w http.ResponseWriter, r *http.Request) {
}
h.ServeHTTP(w, r)
+ postView.With(prometheus.Labels{"base": filepath.Base(p.Link)}).Inc()
}
func (s *Site) showPost(w http.ResponseWriter, r *http.Request) {