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
[11ty] 1. Error processing the `BacklinksPlugin` plugin (via EleventyPluginError)
[11ty] 2. config.addCollection(notes) already exists. Try a different name for your collection. (via UserConfigError)
My steps
I added your plugin in my .eleventy.js :
consteleventyBacklinks=require('eleventy-plugin-backlinks');module.exports=function(eleventyConfig){// plugin to add backlinkseleventyConfig.addPlugin(eleventyBacklinks,{folder: '/notes',// The folder with your notesgetData: 'description'});[…]}
I installed the plugin with npm install eleventy-plugin-backlinks
I commented notes.11tydata.js to avoid conflicts
In the include backlinks.html, I tried to get the description passed through with getData ?
And I got the collection error. Does your code is adding a collection note by itself then ?
How do we do to resolve this collection conflict ?
My .eleventy.js is indeed adding a collection, I don’t know if it’s your theme or the code I picked elswhere, but I’m pretty sure it’s needed elswhere in the code :
Ok so I don’t need this plugin anymore since your theme works with the very simple modification I found at least, so you can close this issue if needed. I still feel that the documentation should be a bit clearer that the note collection is handled by your plugin, and how to modify the getData function, but yeah I’m a newbie.
Thanks for your works, plugins and theme, it helps a lot navigating in eleventy!
Hi, following my question in your theme project eleventy-garden, I tried your plugin and got an error :
My steps
.eleventy.js
:notes.11tydata.js
to avoid conflictsbacklinks.html
, I tried to get the description passed through with getData ?And I got the collection error. Does your code is adding a collection note by itself then ?
How do we do to resolve this collection conflict ?
My
.eleventy.js
is indeed adding a collection, I don’t know if it’s your theme or the code I picked elswhere, but I’m pretty sure it’s needed elswhere in the code :If I comment the collection code, I get another error linked to your plugin :
Do I have to declare a getData function by myself to get the note.description I just want to get ?
Again, sorry for being such a newbie, I don’t understand js very well when it’s at this scope u_u
Thanks in advance,
Yazae
The text was updated successfully, but these errors were encountered: