Skip to content

Commit

Permalink
Merge pull request #29 from netlify/pin_hugo_version
Browse files Browse the repository at this point in the history
Pin Hugo version on Netlify to the most recent one.
  • Loading branch information
calavera authored Jul 19, 2017
2 parents eedf22a + d078288 commit 6ee3b2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ You can also click this button:

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/eliwilliamson/victor-hugo)

### Picking the right version of Hugo

Victor-Hugo doesn't make any assumption on which version of Hugo you use, this boilerplate works with any version above v0.13. However, the version
installed on your computer might not be the same version that Netlify uses to build your site. To ensure that those two versions match, open the `netlify.toml`
file and change the `HUGO_VERSION` variable to match the version you use in your computer. If you don't know which version you're using in your computer, you
can open a terminal and run `hugo version`, that will display the version in your computer.

## Enjoy!!
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
command = "npm run build"
publish = "dist"

# Change the version of Hugo you want to use on Netlify
# by changing this environment variable.
[build.environment]
HUGO_VERSION = "v0.25.1"

[context.deploy-preview]
command = "npm run build-preview"

0 comments on commit 6ee3b2f

Please sign in to comment.