diff --git a/Taskfile.yml b/Taskfile.yml index 88c9111..c83f40d 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -43,7 +43,7 @@ tasks: - deps:ensure-npm - build:generate-info cmds: - - "{{.HUGO_CMD}} server" + - "{{.HUGO_CMD}} server --noHTTPCache" clean: desc: Clean build artifacts @@ -113,16 +113,16 @@ tasks: if [ -d "public/docs-old" ]; then mv public/docs-old /tmp/htmltest-backup-$$/; fi if [ -d "public/blog" ]; then mv public/blog /tmp/htmltest-backup-$$/; fi if [ -d "public/_print/docs-old" ]; then mv public/_print/docs-old /tmp/htmltest-backup-$$/docs-old-print; fi - + # Run htmltest htmltest || EXIT_CODE=$? - + # Restore directories if [ -d "/tmp/htmltest-backup-$$/docs-old" ]; then mv /tmp/htmltest-backup-$$/docs-old public/; fi if [ -d "/tmp/htmltest-backup-$$/blog" ]; then mv /tmp/htmltest-backup-$$/blog public/; fi if [ -d "/tmp/htmltest-backup-$$/docs-old-print" ]; then mv /tmp/htmltest-backup-$$/docs-old-print public/_print/docs-old; fi rm -rf /tmp/htmltest-backup-$$ - + # Exit with the original exit code exit ${EXIT_CODE:-0}