comments wip
This commit is contained in:
@@ -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")]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user