Display version when building site (#8533)
authorJoe Mooring <joe.mooring@veriphor.com>
Fri, 14 May 2021 14:45:13 +0000 (07:45 -0700)
committerGitHub <noreply@github.com>
Fri, 14 May 2021 14:45:13 +0000 (16:45 +0200)
Closes #8531

commands/hugo.go

index b850f7e65bbe737c0cab5cd2b7676e7398c7feb5..fddbe2b77fcd922ee65863aa5581c70a894d1727 100644 (file)
@@ -37,6 +37,7 @@ import (
        "github.com/pkg/errors"
 
        "github.com/gohugoio/hugo/common/herrors"
+       "github.com/gohugoio/hugo/common/hugo"
        "github.com/gohugoio/hugo/common/loggers"
        "github.com/gohugoio/hugo/common/terminal"
 
@@ -283,6 +284,7 @@ func (c *commandeer) fullBuild() error {
 
        if !c.h.quiet {
                fmt.Println("Start building sites … ")
+               fmt.Println(hugo.BuildVersionString())
                if isTerminal() {
                        defer func() {
                                fmt.Print(showCursor + clearLine)