1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Make redirect alias valid XHTML5

This commit is contained in:
Rohan Kumar 2023-11-26 14:57:42 -08:00
parent 8971d74dac
commit c98b28f6fe
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -11,7 +11,7 @@ script_dir="$(dirname "$0")"
temp_resume="$(mktemp)" 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. # 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|<html lang="en-us"|<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us" xml:lang="en-us"|' -E -e 's#<((link|meta) .*)">#<\1" />#' "$output_dir/resume/index.html"
mv "$output_dir/resume/index.html" "$temp_resume" mv "$output_dir/resume/index.html" "$temp_resume"
{ {