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

github.com/halogenica/beautifulhugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2018-12-16 12:49:37 +0300
committerVincent Tam <sere@live.hk>2018-12-16 12:49:37 +0300
commit09f5875f0308b9a49e2abe32f8dd76beca15655a (patch)
treeddb29c6a06cb3bd78dfac65971a6fe68fcdce8e5 /README.md
parent873599321466d73464e72be35c12d142b508b17d (diff)
Update README after c07daadd
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 3 insertions, 8 deletions
diff --git a/README.md b/README.md
index 63657e9..b81d92f 100644
--- a/README.md
+++ b/README.md
@@ -107,20 +107,15 @@ To add Google Analytics, simply sign up to [Google Analytics](https://www.google
### Commit SHA on the footer
-If the source of your site is in a Git repo, the SHA corresponding to the commit the site is built from can be shown on the footer. To do so, two environment variables have to be set (`GIT_COMMIT_SHA` and `GIT_COMMIT_SHA_SHORT`) and parameter `commit` has to be defined in the config file:
+If the source of your site is in a Git repo, the SHA corresponding to the commit the site is built from can be shown on the footer. To do so, two site parameters `commit` has to be defined in the config file `config.toml`:
```
+enableGitInfo = true
[Params]
commit = "https://github.com/<username>/<siterepo>/tree/"
```
-
-This can be achieved by running the next command prior to calling Hugo:
-```
- GIT_COMMIT_SHA=`git rev-parse --verify HEAD` GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
-```
-
-See at [xor-gate/xor-gate.org](https://github.com/xor-gate/xor-gate.org) an example of how to add it to a continuous integration system.
+See at [vincenttam/vincenttam.gitlab.io](https://gitlab.com/vincenttam/vincenttam.gitlab.io) for an example of how to add it to a continuous integration system.
### Extra shortcodes