Former-commit-id: 73c31acfa1c812e896c57562338bd1fc27e3a3fb [formerly 15188c05c39a31691a875a57fadc2b397942146c] [formerly 6ad4d891a760572954b88383b41ced35bffc14c2 [formerly 97365f0e16]]
Former-commit-id: cb059d6f523e1f4a158bd504e04ce052ce32ae8b [formerly 945c4570eaa8478e7cea4dea8085a0ad69dfc063]
Former-commit-id: 138a1faefacab94f8ba14e0b72c75dd41fa9b965
pull/726/head
Henrique Dias 2017-07-27 18:05:57 +01:00
parent d82f198b48
commit 5d2e8864e5
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 {