Revert "Pin Hugo version on Netlify to the most recent one."
Since313be1b
we install hugo via npm, so there is no need for netlify to know the hugo version anymore. This reverts commit571859a51b
.
This commit is contained in:
parent
313be1bce1
commit
6a37cacd55
|
@ -78,11 +78,6 @@ 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)
|
[![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!!
|
## Enjoy!!
|
||||||
|
|
|
@ -2,10 +2,5 @@
|
||||||
command = "npm run build"
|
command = "npm run build"
|
||||||
publish = "dist"
|
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]
|
[context.deploy-preview]
|
||||||
command = "npm run build-preview"
|
command = "npm run build-preview"
|
||||||
|
|
Reference in New Issue