Markdown: generate static sites after links.

This commit is contained in:
Abiola Ibrahim
2015-08-05 09:55:04 +01:00
parent 9669363504
commit 3b910645e7
7 changed files with 167 additions and 141 deletions

View File

@ -122,7 +122,7 @@ func (md Markdown) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error
// if development is set, scan directory for file changes for links.
if m.Development {
if err := GenerateLinks(md, m); err != nil {
if err := GenerateStatic(md, m); err != nil {
log.Println(err)
}
}