I’ve got a theme that makes use of imported blueprints. This is done by making a new tab in the parent blueprint, while the tab contents sit in a separate blueprint that is then imported. Example:
Yeah, I saw that there is a stricter YAML parser now, hence my theory that Grav 1.6 (with the previous parser) ignored an issue that it doesn’t ignore now. However, running the yamllinter does not show any issues with my blueprints. The only file it does show an issue with is a system-owned file (account_new.yaml), which shouldn’t have anything to do with this issue, I’d assume.
@domsson, You said you are using a theme which makes use of imported blueprints. I therefor guess that blueprints are stored in ‘/user/themes/<theme>/blueprints’.
If so, the blueprints will not be found when using the following import@ statement:
Explanation:
According a late answer to one of your previous question regarding the same topic, context: blueprints:// points by default to the blueprints folder of the Admin plugin (/user/plugins/admin/blueprints). Above import@ will therefor point to /user/plugins/admin/blueprints/partials/downloads.yaml.
To have Grav search in the blueprints folder of a theme, one should use the following import@ instead:
Hm, I hadn’t seen (or forgot) about the late answers of that related issue. However, there are two things that strike me as odd about the solution proposed there:
context: blueprints:// is exactly how it is shown in the Grav doc’s example
It worked with just context: blueprints:// in the previous Grav version
Using the context line that includes the hardcoded theme name seems like a bad idea; rename the theme an everything breaks?
I just discovered something interesting though: entirely removing the context line seems to fix the issue! I don’t know if this is a “dirty workaround”, or expected behavior, but I guess I’ll roll with this for now.