add netlify.toml
This commit is contained in:
parent
7b0b8f9752
commit
b12b7570e9
2
hugo.yml
2
hugo.yml
@ -9,7 +9,7 @@ enableRobotsTXT: true
|
|||||||
buildDrafts: false
|
buildDrafts: false
|
||||||
buildFuture: false
|
buildFuture: false
|
||||||
buildExpired: false
|
buildExpired: false
|
||||||
enableGitInfo: false # https://gohugo.io/variables/git/#gitinfo-variables
|
enableGitInfo: true # https://gohugo.io/variables/git/#gitinfo-variables
|
||||||
|
|
||||||
permalinks:
|
permalinks:
|
||||||
posts: "/:filename"
|
posts: "/:filename"
|
||||||
|
11
netlify.toml
Normal file
11
netlify.toml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[build]
|
||||||
|
publish = "public"
|
||||||
|
command = "hugo --gc --minify"
|
||||||
|
|
||||||
|
[build.environment]
|
||||||
|
HUGO_VERSION = "0.118.2"
|
||||||
|
HUGO_ENV = "production"
|
||||||
|
HUGO_ENABLEGITINFO = "true"
|
||||||
|
|
||||||
|
[context.deploy-preview]
|
||||||
|
command = "sed -i 's/! Content-Security-Policy//g' static/_headers && hugo --minify"
|
Loading…
Reference in New Issue
Block a user