publishing with in-process hugo function calls

pull/16/head
Stephen Searles 7 years ago
parent 6190379c74
commit ab06bed6ec
  1. 6
      hugo.go

@ -2,7 +2,6 @@ package caddyhugo
import (
"fmt"
"os/exec"
"path"
"time"
@ -24,9 +23,8 @@ func (ch *CaddyHugo) Publish() error {
if err != nil {
return err
}
cmd := exec.Command("hugo")
cmd.Dir = ch.Dir
_, err = cmd.CombinedOutput()
err = buildSite(ch.HugoSites)
if err != nil {
return err
}

Loading…
Cancel
Save