Adding a tag or a category a post generates links without a leading slash, leading to this error (reproducer repo):
* At _site/chirpy-test-bug/posts/reproducer/index.html:1:
internally linking to chirpy-test-bug/categories/category1/, which does not exist
* At _site/chirpy-test-bug/posts/reproducer/index.html:1:
internally linking to chirpy-test-bug/tags/tag1/, which does not exist
* At _site/chirpy-test-bug/posts/reproducer/index.html:1:
internally linking to chirpy-test-bug/tags/tag2/, which does not exist
I'm able to reproduce the issue locally and solve it by adding a leading slash to the links in_layouts/post.html at lines 108 and 120 (in jekyll-theme-chirpy), however I am not so familiar with ruby or jekyll, and I see that this code has been there for a while and that there also are other uses of {{ site.baseurl }} without a leading slash, so I am not sure if that's the right fix.
This looks like a great theme, contratulations for this. I'd really like to get it working, so thanks in advance for the help.
Checklist
How did you create the site?
Generated from
chirpy-starter
Describe the bug
Adding a tag or a category a post generates links without a leading slash, leading to this error (reproducer repo):
I'm able to reproduce the issue locally and solve it by adding a leading slash to the links in
_layouts/post.html
at lines 108 and 120 (injekyll-theme-chirpy
), however I am not so familiar with ruby or jekyll, and I see that this code has been there for a while and that there also are other uses of{{ site.baseurl }}
without a leading slash, so I am not sure if that's the right fix.This looks like a great theme, contratulations for this. I'd really like to get it working, so thanks in advance for the help.
Steps To Reproduce
Expected Behavior
No error
Environment
Locally:
Also happens on CI with the vanilla chirpy-starter template
Anything else?
No response