Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit db4ba40

Browse files
committed
Link checker bug
Update deprecated field name
1 parent abc7b36 commit db4ba40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_checks/html_check_hook.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919

2020
# Do not exit when html-proofer raises an error
2121
begin
22-
# Check 'url_ignore' in '_config.checks.yml'
22+
# Check 'ignore_urls' in '_config.checks.yml'
2323
# and add 'excludes' from Jekyll configuration.
2424
#
2525
checks_config = YAML.load_file('_config.checks.yml')
26-
url_ignore = checks_config.dig('html-proofer', :url_ignore)
26+
ignore_urls = checks_config.dig('html-proofer', :ignore_urls)
2727
jekyll_excludes = site.config['exclude']
2828
jekyll_excludes_as_regex =
2929
jekyll_excludes.map do |item|
3030
Regexp.new Regexp.escape(item)
3131
end
3232

33-
if url_ignore
34-
url_ignore.push(jekyll_excludes_as_regex).flatten!.uniq!
33+
if ignore_urls
34+
ignore_urls.push(jekyll_excludes_as_regex).flatten!.uniq!
3535
else
3636
checks_config['html-proofer'][:ignore_urls] = jekyll_excludes_as_regex
3737
end

0 commit comments

Comments
 (0)