From 2e47c91985e84bb950216934cca3e19355210b5e Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Mon, 7 Oct 2024 10:14:32 +0200 Subject: [PATCH] 404 page --- Caddyfile-preview | 2 +- justfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Caddyfile-preview b/Caddyfile-preview index 29d1ccf..43eb494 100644 --- a/Caddyfile-preview +++ b/Caddyfile-preview @@ -24,7 +24,7 @@ @404 { expression {http.error.status_code} == 404 } - rewrite @404 /404.html + rewrite @404 /not-found.html file_server } } diff --git a/justfile b/justfile index 4d1c30a..795a312 100644 --- a/justfile +++ b/justfile @@ -52,6 +52,7 @@ clean: # SSG ssg: - wget --no-convert-links -r -p -E -P dist --no-host-directories 127.0.0.1:{{port}} + - wget --no-convert-links -p -E -P dist --no-host-directories 127.0.0.1:{{port}}/not-found find generated_images/ -name "*_og*" -exec cp --parents {} dist/ \; # Preview server