aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/site/html.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/site/html.go b/cmd/site/html.go
index ba304c5..5c6b828 100644
--- a/cmd/site/html.go
+++ b/cmd/site/html.go
@@ -56,9 +56,10 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) {
return
}
+ cmp := r.URL.Path[1:]
var p *Post
for _, pst := range s.Posts {
- if pst.Link == r.RequestURI[1:] {
+ if pst.Link == cmp {
p = pst
}
}