From 063ff180f75742a74fe24ab1b618a204d7bd4df0 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 8 Mar 2016 19:57:57 +0000 Subject: [PATCH] fix public assets path --- hugo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo.go b/hugo.go index c1aee8d4..c1b6e445 100644 --- a/hugo.go +++ b/hugo.go @@ -177,7 +177,7 @@ func (h CaddyHugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error // serveAssets handles the /admin/assets requests func serveAssets(w http.ResponseWriter, r *http.Request) (int, error) { - filename := strings.Replace(r.URL.Path, "/admin/", "", 1) + filename := strings.Replace(r.URL.Path, "/admin/assets", "public", 1) file, err := assets.Asset(filename) if err != nil {