mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-23 18:10:52 +02:00
Tested with Hugo v0.135.0 Addresses recent breaking changes in Hugo: ERROR deprecated: .Site.GoogleAnalytics was deprecated. WARN deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.pagerSize instead
23 lines
632 B
TOML
23 lines
632 B
TOML
[build]
|
|
command = "hugo --gc --minify -b $URL && npx pagefind --source 'public'"
|
|
publish = "public"
|
|
|
|
[build.environment]
|
|
HUGO_VERSION = "0.135.0"
|
|
GO_VERSION = "1.21.5"
|
|
NODE_VERSION = "21.1.0"
|
|
HUGO_ENABLEGITINFO = "true"
|
|
|
|
[context.production.environment]
|
|
HUGO_ENV = "production"
|
|
|
|
[context.deploy-preview]
|
|
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'"
|
|
|
|
[context.branch-deploy]
|
|
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && npx pagefind --source 'public'"
|
|
|
|
[[plugins]]
|
|
package = "netlify-plugin-hugo-cache-resources"
|
|
[plugins.inputs]
|
|
debug = true
|