-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Pages should do recursive search for image files #2702
Comments
For completeness here's the full docstring you're referring to: Lines 246 to 253 in f70b3db
Walking the whole assets dir is certainly easy for users, I'm just trying to figure out how likely it is it'll lead to ambiguity or unintended effects... like since I don't know how many people would hit that, but it could be very confusing if it did happen. As a safer (but less user-friendly) alternative we could make a global setting "look in this assets subfolder for pages images" perhaps with an option like |
I can see how this could lead to some unexpected results. It’s certainly possible to limit the search to certain folders, but I think it would add complexity rather than reduce it — which was the goal. It’s probably best to close this issue, and it could be reopened later if people think it’s worthwhile. |
When creating meta tags, Pages only searches the root of the assets folder for image files. It would be better to do a recursive search since it's common to use folders within
/assets
in larger projects.This would still be consistent with the docs which states:
Currently it's necessary to specify the image file name ie
image="images/app.png"
when using subfolder in/assets
. This change would make that step unnecessary.I could do the PR to fix this if you like 🙂
The text was updated successfully, but these errors were encountered: