Skip to content

Commit

Permalink
fix hugo deploy without dev server issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abertschi committed Apr 9, 2024
1 parent 9266c05 commit 288c9e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ dev:
.PHONY:
build:
cd "$(PROJ_ROOT)/hugo" && npm run build

.PHONY:
clean:
git clean -fdx
1 change: 1 addition & 0 deletions hugo/config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ baseurl = "https://ahoi-attacks.github.io/"
canonifyURLs = false
disableAliases = true
disableHugoGeneratorInject = true
timeout = 120
# disableKinds = ["taxonomy", "term"]
enableEmoji = true
enableGitInfo = false
Expand Down
4 changes: 2 additions & 2 deletions hugo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 && exec-bin node_modules/.bin/hugo/hugo --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",
Expand All @@ -38,7 +38,7 @@
"shx": "^0.3.4"
},
"otherDependencies": {
"hugo": "0.123.7"
"hugo": "0.124.1"
},
"overrides": {
"semver": "^7.5.4"
Expand Down

0 comments on commit 288c9e8

Please sign in to comment.