Hugo

How to compile hugo from source with extended tag?

Hi, guys,

I just go get install gohugoio/hugo throught github.com

my hugo site use sass, according to https://goo.gl/YMrWcn, I have executed go install --tags extended

but still I can not compile hugo support sass, here is my command go build -o hugo main.go

$ hugo
Building sites … WARN 2019/11/30 14:54:39 Markup type mmark is deprecated and will be removed in a future release. See https://gohugo.io//content-management/formats/#list-of-content-formats
ERROR 2019/11/30 14:54:39 Transformation failed: TOCSS: failed to transform “sass/main.scss” (text/x-scss): this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
Total in 2342 ms
Error: Error building site: logged 1 error(s)

How to compile main.go to support sass?

Got it, after run go install --tags extended, the extend version hugo will be installed in $GOPATH/bin.

Duplicated question with Building Hugo from Source with Go Modules

Thanks.