Skip to content

Commit

Permalink
🔧 Add netlify.toml
Browse files Browse the repository at this point in the history
🚚 Move CNAME file
➖ Disabled caches
  • Loading branch information
Ice-Hazymoon committed Feb 20, 2023
1 parent 7b48bd8 commit aba2189
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ imaging:
quality: 95
anchor: smart

caches:
getresource:
dir: :resourceDir/_gen
maxAge: 24h
# caches:
# getresource:
# dir: :resourceDir/_gen
# maxAge: 24h

# 隐私政策,请查看 https://gohugo.io/about/hugo-and-gdpr/
# See https://gohugo.io/about/hugo-and-gdpr/
Expand Down
6 changes: 6 additions & 0 deletions exampleSite/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build]
command = "cd themes/hugo-theme-luna && npm install --production && cd ../../ hugo --gc --minify --cleanDestinationDir -v"
publish = "public"

[build.environment]
HUGO_VERSION = "0.104.3"
File renamed without changes.
6 changes: 6 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build]
command = "npm install --production && hugo --gc --minify --cleanDestinationDir -s ./exampleSite --themesDir ../.. -v"
publish = "public"

[build.environment]
HUGO_VERSION = "0.104.3"

0 comments on commit aba2189

Please sign in to comment.