add todos

This commit is contained in:
Henrique Dias 2016-06-29 10:46:55 +01:00
parent f5b4b43248
commit 049bc2fe0f

10
hugo.go
View File

@ -67,7 +67,7 @@ func (h Hugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
}
if r.Method == http.MethodPost && r.Header.Get("archetype") != "" {
// TODO: this
return 0, nil
}
@ -83,7 +83,7 @@ func (h Hugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
}
if r.Header.Get("Schedule") != "" {
code, err = Schedule(w, r, h.Config)
}
return code, err
@ -115,6 +115,12 @@ func RunHugo(c *Config, force bool) {
}
}
// Schedule schedules a post to be published later
func Schedule(w http.ResponseWriter, r *http.Request, c *Config) (int, error) {
// TODO: this
return http.StatusOK, nil
}
// serveAssets provides the needed assets for the front-end
func serveAssets(w http.ResponseWriter, r *http.Request, c *Config) (int, error) {
// gets the filename to be used with Assets function