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:
parent
8971d74dac
commit
c98b28f6fe
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue