From c98b28f6fe0de79dd7a3c21aaba50c8e88b93cc7 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sun, 26 Nov 2023 14:57:42 -0800 Subject: [PATCH] Make redirect alias valid XHTML5 --- scripts/xhtmlize.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xhtmlize.sh b/scripts/xhtmlize.sh index dca15c9..1d56c24 100644 --- a/scripts/xhtmlize.sh +++ b/scripts/xhtmlize.sh @@ -11,7 +11,7 @@ script_dir="$(dirname "$0")" temp_resume="$(mktemp)" # I have an alias for a redirect. I also define the redirect in Nginx, but this is there for the envs.net/~seirdy mirror. Hugo aliases don't have trailing slashes; this will trip up xmllint. -sed -i -E -e 's#<((link|meta) .*)">#<\1" />#' "$output_dir/resume/index.html" +sed -i -e 's|#<\1" />#' "$output_dir/resume/index.html" mv "$output_dir/resume/index.html" "$temp_resume" {