aboutsummaryrefslogtreecommitdiffhomepage
path: root/magefile.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-11-26 10:11:22 +0100
committerBjørn Erik Pedersen <[email protected]>2018-12-06 14:37:25 +0100
commit831d23cb4d1ca99cdc15ed31c8ee1f981497be8f (patch)
tree8fe47b1b1b9233448297f8015ce61bbb7da13fc7 /magefile.go
parent514e18dc27ce37a0e9a231741d616cf29d50d610 (diff)
downloadhugo-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 'magefile.go')
-rw-r--r--magefile.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/magefile.go b/magefile.go
index e7ec106d7..cd873dd77 100644
--- a/magefile.go
+++ b/magefile.go
@@ -21,10 +21,10 @@ import (
const (
packageName = "github.com/gohugoio/hugo"
- noGitLdflags = "-X $PACKAGE/hugolib.BuildDate=$BUILD_DATE"
+ noGitLdflags = "-X $PACKAGE/common/hugo.BuildDate=$BUILD_DATE"
)
-var ldflags = "-X $PACKAGE/hugolib.CommitHash=$COMMIT_HASH -X $PACKAGE/hugolib.BuildDate=$BUILD_DATE"
+var ldflags = "-X $PACKAGE/common/hugo.CommitHash=$COMMIT_HASH -X $PACKAGE/common/hugo.BuildDate=$BUILD_DATE"
// allow user to override go executable by running as GOEXE=xxx make ... on unix-like systems
var goexe = "go"