diff --git a/config/_default/config.toml b/config/_default/config.toml index d0cc42f..56fc5c8 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -77,6 +77,10 @@ rel = "sitemap" blog = "/blog/:title/" [module] + [module.hugoVersion] + extended = true + min = "0.80.0" + max = "" [[module.mounts]] source = "assets" target = "assets" diff --git a/netlify.toml b/netlify.toml index cebb46a..3513a54 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,25 +5,26 @@ [build.environment] NODE_VERSION = "16.3.0" NPM_VERSION = "7.16.0" + HUGO_VERSION = "0.84.4" [context.production] - command = "exec-bin bin/hugo/hugo --gc --minify" + command = "hugo --gc --minify" [context.deploy-preview] - command = "exec-bin bin/hugo/hugo --gc --minify -b $DEPLOY_PRIME_URL" + command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy] - command = "exec-bin bin/hugo/hugo --gc --minify -b $DEPLOY_PRIME_URL" + command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.next] - command = "exec-bin bin/hugo/hugo --gc --minify" + command = "hugo --gc --minify" [context.next.environment] HUGO_ENV = "next" [dev] framework = "#custom" - command = "shx rm -rf public resources && exec-bin bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender" + command = "shx rm -rf public resources && hugo server --bind=0.0.0.0 --disableFastRender" targetPort = 1313 port = 8888 publish = "public" diff --git a/package.json b/package.json index 765f9ff..4070608 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "lint": "npm run -s lint:scripts && npm run -s lint:styles && npm run -s lint:markdown", "lint:scripts": "eslint assets/js config functions", "lint:styles": "stylelint \"assets/scss/**/*.{css,sass,scss,sss,less}\"", - "lint:markdown": "markdownlint *.md content/**/*.md", + "lint:markdown": "markdownlint \"*.md\" \"content/**/*.md\"", "server": "exec-bin bin/hugo/hugo server", "test": "npm run -s lint", "env": "env", @@ -60,6 +60,6 @@ "stylelint-config-standard": "^22.0" }, "otherDependencies": { - "hugo": "0.84.0" + "hugo": "0.84.4" } }