Ignore image links in html-proofer test

This commit is contained in:
Cotes Chung 2021-06-30 20:11:10 +08:00
parent 6d1d440c00
commit 9359d6ef11
2 changed files with 2 additions and 5 deletions

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 -->

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