diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 15a7d1f..0274396 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -1,6 +1,6 @@ title = "OffensiveWeb" baseurl = "https://www.offensiveweb.com" -canonifyURLs = false +canonifyURLs = true disableAliases = true disableHugoGeneratorInject = true # disableKinds = ["taxonomy", "term"] diff --git a/config/production/hugo.toml b/config/production/hugo.toml index 6ce2a03..d0dcf3c 100644 --- a/config/production/hugo.toml +++ b/config/production/hugo.toml @@ -1 +1,2 @@ # Overrides for production environment +canonifyURLs = false \ No newline at end of file diff --git a/package.json b/package.json index d78a475..7b10422 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint:styles": "stylelint --cache \"assets/scss/**/*.{css,sass,scss}\"", "lint:markdown": "markdownlint-cli2 \"*.md\" \"content/**/*.md\"", "test": "echo \"Error: no test specified\" && exit 1", - "build": "exec-bin node_modules/.bin/hugo/hugo --minify", + "build": "exec-bin node_modules/.bin/hugo/hugo --gc --minify", "preview": "http-server --gzip --brotli --ext=html --cors", "clean": "npm run clean:build && npm run clean:lint && npm run clean:install", "clean:build": "shx rm -rf public resources .hugo_build.lock",