Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-26 12:11:22 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-06 16:37:25 +0300
commit831d23cb4d1ca99cdc15ed31c8ee1f981497be8f (patch)
tree8fe47b1b1b9233448297f8015ce61bbb7da13fc7 /goreleaser.yml
parent514e18dc27ce37a0e9a231741d616cf29d50d610 (diff)
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.yml2
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: