diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-11-26 10:11:22 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-12-06 14:37:25 +0100 |
commit | 831d23cb4d1ca99cdc15ed31c8ee1f981497be8f (patch) | |
tree | 8fe47b1b1b9233448297f8015ce61bbb7da13fc7 /goreleaser.yml | |
parent | 514e18dc27ce37a0e9a231741d616cf29d50d610 (diff) | |
download | hugo-831d23cb4d1ca99cdc15ed31c8ee1f981497be8f.tar.gz hugo-831d23cb4d1ca99cdc15ed31c8ee1f981497be8f.zip |
Add tpl/site and tpl/hugo
This means that the current `.Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer`, `hugo.Version` etc.
Fixes #5470
Fixes #5467
Fixes #5503
Diffstat (limited to 'goreleaser.yml')
-rw-r--r-- | goreleaser.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/goreleaser.yml b/goreleaser.yml index d2cdf720e..0e9006019 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -2,7 +2,7 @@ project_name: hugo build: main: main.go binary: hugo - ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}} + ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.BuildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.CommitHash={{ .ShortCommit }} env: - CGO_ENABLED=0 goos: |