Created
December 2, 2017 16:05
-
-
Save talves/13721ef83fb5bf33dd1bc6b8de147d14 to your computer and use it in GitHub Desktop.
Basic Netlify Build file for Hugo. Allows for targeting versions in previews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global settings applied to the whole site. | |
[build] | |
publish = "public" | |
command = "hugo -d public" | |
[build.environment] | |
#overwritten by context.production.environment, et. al. | |
HUGO_VERSION = "0.31" | |
# The following environments overwrite the global above if you target them. | |
# The version you use for production | |
[context.production.environment] | |
HUGO_VERSION = "0.31" | |
# you can lock a version of hugo for a deploy preview | |
[context.deploy-preview.environment] | |
HUGO_VERSION = "0.31" | |
# you can lock a version of hugo for a branch-deploy (other than previews) | |
[context.branch-deploy.environment] | |
HUGO_VERSION = "0.31" | |
# build a preview of the site (Drafts and Future dates also) | |
[context.deploy-preview] | |
command = "hugo --buildDrafts --buildFuture" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment