add todos
This commit is contained in:
parent
f5b4b43248
commit
049bc2fe0f
10
hugo.go
10
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") != "" {
|
if r.Method == http.MethodPost && r.Header.Get("archetype") != "" {
|
||||||
|
// TODO: this
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ func (h Hugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.Header.Get("Schedule") != "" {
|
if r.Header.Get("Schedule") != "" {
|
||||||
|
code, err = Schedule(w, r, h.Config)
|
||||||
}
|
}
|
||||||
|
|
||||||
return code, err
|
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
|
// serveAssets provides the needed assets for the front-end
|
||||||
func serveAssets(w http.ResponseWriter, r *http.Request, c *Config) (int, error) {
|
func serveAssets(w http.ResponseWriter, r *http.Request, c *Config) (int, error) {
|
||||||
// gets the filename to be used with Assets function
|
// gets the filename to be used with Assets function
|
||||||
|
|
Loading…
Reference in New Issue