Skip to content

Commit 89335c3

Browse files
committed
chore(site): patch invalid img[alt]
1 parent 1349c39 commit 89335c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/scripts/patch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ function patch_sitemap() {
66
mv dist/sitemap-0.xml dist/sitemap.xml
77
# create sitemap.txt
88
node scripts/patch.js
9-
# replace sitemap.xml with sitemap.txt
109
find dist -name "*.html" | while read -r file; do
11-
sed "s|sitemap.xml|sitemap.txt|g" "$file" > "$file.tmp"
10+
# replace sitemap.xml with sitemap.txt and 'alt ' with 'alt="" '
11+
sed -e "s|sitemap.xml|sitemap.txt|g" -e "s|alt |alt=\"\" |g" "$file" > "$file.tmp"
1212
mv "$file.tmp" "$file"
1313
done
1414
}

0 commit comments

Comments
 (0)