mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Output a timestamp with hugo server --watch
Per a [discussion][thread] on discuss, I have implemented one possible way to do this. [thread]: http://discuss.gohugo.io/t/output-a-timestamp-with-hugo-watch/213
This commit is contained in:
parent
2060031c1f
commit
c07b10bba9
1 changed files with 3 additions and 1 deletions
|
@ -371,7 +371,9 @@ func NewWatcher(port int) error {
|
|||
}
|
||||
|
||||
if dynamic_changed {
|
||||
fmt.Print("Change detected, rebuilding site\n\n")
|
||||
fmt.Print("\nChange detected, rebuilding site\n")
|
||||
const layout = "2006-01-02 15:04 -0700"
|
||||
fmt.Println(time.Now().Format(layout))
|
||||
utils.StopOnErr(buildSite(true))
|
||||
|
||||
if !viper.GetBool("DisableLiveReload") {
|
||||
|
|
Loading…
Reference in a new issue