Ignore image links in html-proofer test

This commit is contained in:
Cotes Chung committed 2021-07-02 17:14:40 +08:00
1 parent 6d1d440c00
commit 9359d6ef11
2 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@
{% assign _content = _content | replace: '<img src="/', img_path_replacement %}
<!-- lazy-load images <https://github.com/ApoorvSaxena/lozad.js#usage> -->
{% assign _content = _content | replace: '<img src="', '<img data-src="' %}
{% assign _content = _content | replace: '<img src="', '<img data-proofer-ignore data-src="' %}
<!-- add image placehoder to prevent layout reflow -->
+1 -4
View File
@@ -7,7 +7,6 @@
# Usage: bash /path/to/test.sh [indicated path]
DEST=_site
URL_IGNORE=cdn.jsdelivr.net
_build=false
@@ -62,6 +61,4 @@ fi
bundle exec htmlproofer "$DEST" \
--disable-external \
--check-html \
--empty_alt_ignore \
--allow_hash_href \
--url_ignore $URL_IGNORE
--allow_hash_href