From a70906e1b93a8d9ee1ac519335e03deea611d162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Tue, 13 Sep 2022 10:52:45 +0100 Subject: [PATCH] updated files for hugo theme listing --- config.toml | 3 ++- netlify.toml | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 netlify.toml diff --git a/config.toml b/config.toml index d919014c..4cc95fea 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,5 @@ [module] [module.hugoVersion] extended = true - min = "0.87.0 " \ No newline at end of file + min = "0.87.0 " + max = "0.100.2" \ No newline at end of file diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..6322f78c --- /dev/null +++ b/netlify.toml @@ -0,0 +1,24 @@ +[build] + command = "cd exampleSite && hugo --gc --minify -D -b $URL" + publish = "exampleSite/public" + +[build.environment] +HUGO_THEMESDIR = "../.." +HUGO_THEME = "repo" +TZ = "Portugal/Lisbon" + +[context.production.environment] +HUGO_VERSION = "0.100.2" +HUGO_ENV = "production" + +[context.deploy-preview] +command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL" + +[context.deploy-preview.environment] +HUGO_VERSION = "0.100.2" + +[context.branch-deploy] +command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL" + +[context.branch-deploy.environment] +HUGO_VERSION = "0.100.2" \ No newline at end of file