Use a plugin for backlinks functionality
I'm assuming here, but I think you got your backlinks code (in html/pages/garden/garden.11tydata.js) from my Eleventy Garden template.
I just made an 11ty plugin which encapsulates the backlinks code. I'm trying to reach out to people who used my template, in case they'd rather use a plugin. The point is, you can integrate it and update it more easily, and not need to rearrange the site.
- Git: https://github.com/binyamin/eleventy-plugin-backlinks
- NPM: https://www.npmjs.com/package/eleventy-plugin-backlinks
Let me know your thoughts.
Thank you, I will look into it. I've made a number of modifications (some of which I probably should have upstreamed) to the file:
- https://github.com/boehs/site/commit/c932848f0f49e58f1a16fb383587d82dc2b36483#diff-3c512c539ed090a0db508574a189f6d62c4efbe524cdc637b2d617a9cc0cfd86
- https://github.com/boehs/site/commit/f984e0ee28bccf5fb14742a5a37d823fa3570a92
- https://github.com/boehs/site/commit/ab1e3e2c4d3ad11e5a71ba1483c2b4765857d816#diff-9b83e9838b3f9a7e7984a34bc8d06c373056a3615cff02694a9b8ba005bb2cca
- https://github.com/boehs/site/commit/52c326653fd5d639dcdef242557eaa4b13045013 & https://github.com/boehs/site/commit/5954b35713eced548f99acf8575e8d53eafc286f
and so I am unsure of how well the plugin will integrate.
In any case, thanks for reaching out!
With your blessing, I would be happy to upstream some of these changes as settings?
I've also credited you in https://github.com/boehs/site/commit/bcf24e6a582c0ce6f898faeb3562bbe6f4f04f71, sorry for not doing that sooner
With your blessing, I would be happy to upstream some of these changes as settings?
Sure, go ahead. Maybe open an issue first. But that sounds great.
I've also credited you in bcf24e6, sorry for not doing that sooner
Don't worry about it. It's MIT licensed, so no attribution required.