浏览代码

chore: add Netlify config to build demo site

George Cushen 6 年之前
父节点
当前提交
205a06bb42
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      netlify.toml

+ 9 - 0
netlify.toml

@@ -0,0 +1,9 @@
+[build]
+  command = "hugo --themesDir ../../ -t hugo-academic"
+  base    = "exampleSite"
+  publish = "exampleSite/public"
+  HUGO_VERSION = "0.53"
+  HUGO_ENABLEGITINFO = "true"
+
+[context.production.environment]
+  HUGO_ENV = "production"