From 049bc2fe0f4dbdc16f0ae12fbb99deab67713006 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 29 Jun 2016 10:46:55 +0100 Subject: [PATCH] add todos --- hugo.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hugo.go b/hugo.go index 0acdc6e2..57dacede 100644 --- a/hugo.go +++ b/hugo.go @@ -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