You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure my way through the eleventy.config.drafts.js plugin and as far as I can tell you're basically replacing the logic downstream of the plugin on the permalink and eleventyExcludeFromCollections properties of every post? I think I have that correct?
The issue is that if that's the approach and any other data file or function touches either of those the logic gets overwritten right? Then it ends up with the draft logic in the plugin never running? That's a pretty easy thing to mess up on, the documentation often prods users to--at the very least--manipulate permalink on eleventyComputed.
Have I got this issue correct? Is this indeed what can happen? If so, I don't think that's very clear in the code and it could likely use some inline comments. I'd be glad to submit a PR if so, but I'm not quite sure I've got the problem I'm seeing locked down and want to double check.
The text was updated successfully, but these errors were encountered:
I'm trying to figure my way through the
eleventy.config.drafts.js
plugin and as far as I can tell you're basically replacing the logic downstream of the plugin on thepermalink
andeleventyExcludeFromCollections
properties of every post? I think I have that correct?The issue is that if that's the approach and any other data file or function touches either of those the logic gets overwritten right? Then it ends up with the draft logic in the plugin never running? That's a pretty easy thing to mess up on, the documentation often prods users to--at the very least--manipulate permalink on
eleventyComputed
.Have I got this issue correct? Is this indeed what can happen? If so, I don't think that's very clear in the code and it could likely use some inline comments. I'd be glad to submit a PR if so, but I'm not quite sure I've got the problem I'm seeing locked down and want to double check.
The text was updated successfully, but these errors were encountered: