From: Austin Ziegler Date: Mon, 27 Oct 2014 21:23:54 +0000 (-0400) Subject: Output a timestamp with hugo server --watch X-Git-Tag: v0.13~354 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c07b10bba9fd444427e6a70a1dc6ea41d4083d29;p=brevno-suite%2Fhugo 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 --- diff --git a/commands/hugo.go b/commands/hugo.go index 810a7144..2fece29c 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -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") {