This commit is contained in:
Henrique Dias
2015-09-16 14:19:35 +01:00
parent 7bde82327a
commit 52a57d1f79
9 changed files with 22 additions and 7 deletions

View File

@@ -3,7 +3,6 @@
package hugo
import (
"log"
"mime"
"net/http"
"path/filepath"
@@ -34,8 +33,6 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
if middleware.Path(r.URL.Path).Matches("/admin") {
page := utils.ParseComponents(r)[1]
log.Print(page)
if page == "assets" {
filename := strings.Replace(r.URL.Path, "/admin/", "", 1)
file, err := assets.Asset(filename)