-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using htmlproof with Jekyll's baseurl #266
Comments
OK I found part of the answer: However it does not seem to apply it to scripts. |
See #219 – jekyll/jekyll#4122 (comment) was a good workaround in the meantime though. |
I can't make Proofer work with Jekyll's |
This is to help HTML proofer not get tripped up by internal links with baseurl, see gjtorikian/html-proofer#266
Adding a comment if anyone is looking for this in 2020. I have run a blog for the better part of 9 years, and completely overlooked the use of |
I am using Jekyll to build my site.
All my images, links, etc, use a variable called
site.baseurl
. eg:<link href="{{site.baseurl}}/lib/bootstrap/css/bootstrap.css" rel="stylesheet">
When generated it looks like:
<link href="/MFPSamples/lib/bootstrap/css/bootstrap.css" rel="stylesheet">
When htmlproof runs on it, I get:
* internally linking to /MFPSamples/lib/bootstrap/css/bootstrap.css, which does not exist (line 18)
I tried to use
href-swap
but the new string value to give is not clear.Using
--href-swap \/MFPSamples\/:
replaces with empty string, which means it translates tolib/bootstrap/css/bootstrap.css
, which is a relative link, which is not always valid depending where you are.Trying
--href-swap \/MFPSamples\/:/
gives an errorhtmlproof 2.5.2 | Error: undefined method
split' for /MFPSamples/:/:Regexp`The text was updated successfully, but these errors were encountered: