mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-07 12:23:30 +00:00
Merge pull request #217 from matalo33/netlify-toml
Set build steps in config
This commit is contained in:
commit
77b0a9de9c
1 changed files with 24 additions and 0 deletions
24
netlify.toml
Normal file
24
netlify.toml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
[build]
|
||||||
|
publish = "exampleSite/public"
|
||||||
|
command = "hugo -s exampleSite"
|
||||||
|
|
||||||
|
[build.environment]
|
||||||
|
HUGO_THEME = "repo"
|
||||||
|
HUGO_THEMESDIR = "/opt/build"
|
||||||
|
HUGO_VERSION = "0.50"
|
||||||
|
|
||||||
|
[context.production.environment]
|
||||||
|
HUGO_BASEURL = "https://learn.netlify.com/"
|
||||||
|
|
||||||
|
[context.deploy-preview]
|
||||||
|
command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
|
[context.deploy-preview.environment]
|
||||||
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
||||||
|
[context.branch-deplpy]
|
||||||
|
command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
|
[context.branch-deploy.environment]
|
||||||
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
Loading…
Add table
Reference in a new issue