Skip to content
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 html-proofer on collections of Jekyll posts #515

Closed
RVledder opened this issue Apr 2, 2019 · 2 comments
Closed

Using html-proofer on collections of Jekyll posts #515

RVledder opened this issue Apr 2, 2019 · 2 comments

Comments

@RVledder
Copy link

RVledder commented Apr 2, 2019

Perhaps a bit off topic for just html-proofer, since it seems to be a combination with jekyll. But perhaps someone has experience with this combination.

We're running into a problem where normal pages are working fine, however collection pages are not found by html-proofer.

example error:

- ./_site/blog/choose-a-datasource.html
  *  internally linking to /blog/choose-a-datasource, which does not exist (line 82)
     <a href="/blog/choose-a-datasource" class="current">Choose a data source</a>

In the following Travis report the collection articles with 'blog' are not found:
https://travis-ci.org/semi-technologies/semi-website/builds/514826595#L1065

However, in the source folder the the page does exist:
https://github.com/semi-technologies/semi-website/tree/permalinks/_blog

And a jekyll build succesfully builds them into ./_site.

(As stated in the config this should indeed output /blog/choose-a-datasource.)

Perhaps this has something to do with the collection folder is in the root of the project, but it's prefixed with an underscore?

@RVledder
Copy link
Author

RVledder commented Apr 3, 2019

Turned out the cause was trailing slashes behind URL's /.

@RVledder RVledder closed this as completed Apr 3, 2019
@gjtorikian
Copy link
Owner

https://github.com/gjtorikian/html-proofer#using-with-jekyll may also have helped, unsure if you saw that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants