diff --git a/netlify.toml b/netlify.toml index e5a4200e..ed82cf53 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,13 +2,14 @@ publish = "exampleSite/public" [context.production] -command = "hugo --source=exampleSite --theme=../.. --baseURL=${URL}" +command = "ln -s ${PWD} ../minimo && hugo --source=exampleSite --baseURL=${URL}" [context.branch-deploy] -command = "hugo --source=exampleSite --theme=../.. --baseURL=${DEPLOY_PRIME_URL}" +command = "hugo --source=exampleSite --theme=$(basename $(pwd)) --baseURL=${DEPLOY_PRIME_URL}" [context.deploy-preview] -command = "hugo --source=exampleSite --theme=../.. --baseURL=${DEPLOY_PRIME_URL}" +command = "hugo --source=exampleSite --theme=$(basename $(pwd)) --baseURL=${DEPLOY_PRIME_URL}" [build.environment] HUGO_VERSION = "0.45" +HUGO_THEMESDIR = "../.."