summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-10-20 21:25:27 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-10-20 21:25:27 +0200
commit4974a62c70e9fb78e261f70017d027727faaf839 (patch)
tree4752b042c8a60e11cb05a216e97d65a02f965855 /README.md
parent5cf1475ecd72a2f17c7ec48ccf499b2e3a5f49b4 (diff)
Trim down 'Adding Compile Information to Hugo' in README
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 1 insertions, 7 deletions
diff --git a/README.md b/README.md
index 189d6e2a3..5999a9d16 100644
--- a/README.md
+++ b/README.md
@@ -127,13 +127,7 @@ mv hugo /usr/local/bin/
### Adding Compile Information to Hugo
-When Hugo is built using the above steps, the `version` sub-command will include the `mdate` of the Hugo executable, similar to the following:
-
- Hugo Static Site Generator v0.13-DEV buildDate: 2014-12-24T04:46:03-07:00
-
-Instead, it is possible to have the `version` sub-command return information about the git commit used and time of compilation using `build` flags.
-
-To do this, replace the `go build` command with the following *(replace `/path/to/hugo` with the actual path)*:
+To add compile information to Hugo, replace the `go build` command with the following *(replace `/path/to/hugo` with the actual path)*:
go build -ldflags "-X /path/to/hugo/hugolib.CommitHash `git rev-parse --short HEAD 2>/dev/null` -X github.com/spf13/hugo/hugolib.BuildDate `date +%FT%T%z`"