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

Include_relative liquid tag inside collection doc doesnt work #6816

Closed
5 tasks done
hosnas opened this issue Feb 28, 2018 · 1 comment · Fixed by #6818
Closed
5 tasks done

Include_relative liquid tag inside collection doc doesnt work #6816

hosnas opened this issue Feb 28, 2018 · 1 comment · Fixed by #6818
Assignees
Labels
bug 🐛 frozen-due-to-age has-pull-request Somebody suggested a solution to fix this issue

Comments

@hosnas
Copy link

hosnas commented Feb 28, 2018

  • I believe this to be a bug, not a question about using Jekyll.
  • I updated to the latest Jekyll (or) if on GitHub Pages to the latest github-pages
  • I ran jekyll doctor to check my configuration

  • I am on (or have tested on) Debian/Ubuntu GNU/Linux

  • I was trying to build.

My Reproduction Steps

I'm trying to use include_relative liquid tag inside one of my collections document but it is giving me an error:
Liquid Exception: Could not locate the included file
I found that it happens only when I put all my collections inside a collection_dir folder . when collection_dir is not defined, the problem doesn't occur.

I have also created this repository for reference:
https://github.com/hosnas/jekyll-test-1
the document is in collections/col1 folder named index.md and the included file is fa.md beside it.

The Output I Wanted

It should normally give me no error and include_relative liquid tag should work as expected.

@ashmaroli
Copy link
Member

This seems like a legit bug to me.
I hadn't considered this at all when I refactored the collections_dir feature in #6685

Thank you @hosnas for reporting this and including a test-repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 frozen-due-to-age has-pull-request Somebody suggested a solution to fix this issue
Projects
None yet
4 participants