pull/166/head
Henrique Dias 2017-07-27 18:05:57 +01:00
parent 703ee7daff
commit 97365f0e16
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 0 additions and 2 deletions

View File

@ -71,7 +71,6 @@ func (h hugo) BeforeAPI(c *filemanager.RequestContext, w http.ResponseWriter, r
}
filename := filepath.Join(string(c.User.FileSystem), r.URL.Path)
filename = strings.TrimPrefix(filename, "/")
archetype := r.Header.Get("archetype")
ext := filepath.Ext(filename)
@ -100,7 +99,6 @@ func (h hugo) BeforeAPI(c *filemanager.RequestContext, w http.ResponseWriter, r
}
filename := filepath.Join(string(c.User.FileSystem), r.URL.Path)
filename = strings.TrimPrefix(filename, "/")
// Before save command handler.
if err := c.FM.Runner("before_publish", filename); err != nil {