mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-18 17:13:56 +00:00
docs: Update GitInfo usage docs
This commit is contained in:
parent
f8190777f2
commit
d332aa1606
2 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,8 @@ Hugo provides a way to integrate Git data into your site.
|
||||||
|
|
||||||
1. The Hugo site must be in a Git-enabled directory.
|
1. The Hugo site must be in a Git-enabled directory.
|
||||||
1. The Git executable must be installed and in your system `PATH`.
|
1. The Git executable must be installed and in your system `PATH`.
|
||||||
|
1. Enable the GitInfo feature in Hugo by using `--enableGitInfo` on the command
|
||||||
|
line or by setting `enableGitInfo` to `true` in your site configuration.
|
||||||
|
|
||||||
## The GitInfo Object
|
## The GitInfo Object
|
||||||
|
|
||||||
|
|
|
@ -124,6 +124,8 @@ along with their current, default values:
|
||||||
disableRSS: false
|
disableRSS: false
|
||||||
# Do not build Sitemap file
|
# Do not build Sitemap file
|
||||||
disableSitemap: false
|
disableSitemap: false
|
||||||
|
# Enable GitInfo feature
|
||||||
|
enableGitInfo: false
|
||||||
# Build robots.txt file
|
# Build robots.txt file
|
||||||
enableRobotsTXT: false
|
enableRobotsTXT: false
|
||||||
# Do not render 404 page
|
# Do not render 404 page
|
||||||
|
|
Loading…
Reference in a new issue