fix public assets path

pull/68/head
Henrique Dias 2016-03-08 19:57:57 +00:00
parent 51c66e7fbf
commit 063ff180f7
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ func (h CaddyHugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error
// serveAssets handles the /admin/assets requests // serveAssets handles the /admin/assets requests
func serveAssets(w http.ResponseWriter, r *http.Request) (int, error) { 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) file, err := assets.Asset(filename)
if err != nil { if err != nil {