diff --git a/Makefile b/Makefile index bc012f6..32822c9 100644 --- a/Makefile +++ b/Makefile @@ -83,8 +83,12 @@ hint: hugo .hintrc-local hint --config .hintrc-local -f codeframe $(OUTPUT_DIR) rm .hintrc-local +.PHONY: html-validate +html-validate: + pnpm -s dlx html-validate --ext=html -c linter-configs/htmlvalidate.json $(OUTPUT_DIR) + .PHONY: lint-local -lint-local: validate-html validate-json lint-css +lint-local: html-validate validate-html validate-json lint-css # dev server, includes future and draft posts .PHONY: serve diff --git a/linter-configs/htmlvalidate.json b/linter-configs/htmlvalidate.json index ae0319a..1106ce8 100644 --- a/linter-configs/htmlvalidate.json +++ b/linter-configs/htmlvalidate.json @@ -29,6 +29,9 @@ ], "prefer-button": [ "off" + ], + "no-trailing-whitespace": [ + "off" ] } }