comments wip

This commit is contained in:
2017-09-05 21:21:56 -05:00
parent 4b76df1811
commit 50d0f53509
6 changed files with 315 additions and 7 deletions
+4
View File
@@ -121,3 +121,7 @@ func (ch *CaddyHugo) editSession(docName string) (*editSession, error) {
func docNameFromEditRequest(r *http.Request) string {
return r.URL.Path[len("/hugo/edit/"):]
}
func docNameFromCommentRequest(r *http.Request) string {
return r.URL.Path[1 : len(r.URL.Path)-len("/comments")]
}