summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroninro <liumy.f@foxmail.com>2022-07-28 18:42:29 +0800
committerroninro <liumy.f@foxmail.com>2022-07-28 18:42:29 +0800
commit9010ae964277cbb0b0ba7a1ea8b83ef000a6d382 (patch)
treec4cb3acb858b152cf4a7ad40c13403499856373b
parentc953d353194ae038f1815290337a82c1cb65272c (diff)
add netlify.toml
-rw-r--r--exampleSite/config.toml2
-rw-r--r--netlify.toml11
2 files changed, 12 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 2d588df..448d6e6 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,4 +1,4 @@
-baseURL = "https://gohugo.io"
+baseURL = "http://localhost:1313/"
title = "Puppet Theme"
author = "Roninro"
copyright = ""
diff --git a/netlify.toml b/netlify.toml
new file mode 100644
index 0000000..5e9c2c5
--- /dev/null
+++ b/netlify.toml
@@ -0,0 +1,11 @@
+[build]
+ publish = "exampleSite/public"
+ command = "hugo -s exampleSite"
+
+[build.environment]
+ HUGO_THEME = "repo"
+ HUGO_THEMESDIR = "/opt/build"
+ HUGO_VERSION = "0.101.0"
+
+[context.deploy-preview]
+ command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL"