binyamin / eleventy-garden

:seedling: A starter site for building a mind garden with eleventy
https://eleventy-garden.netlify.app
MIT License
451 stars 48 forks source link

Package into Eleventy plugin(s) #84

Open xplosionmind opened 2 years ago

xplosionmind commented 2 years ago

Is your feature request related to a problem? Please describe. The features are tied to this repository

Describe the solution you'd like Package several different features into plugins, so that they can be easily updated, implemented and installed in any Eleventy website. Specifically:

Describe alternatives you've considered In order to adapt this template repository to my website, I got crazy and it took me a long time (since I am not a developer). Furthermore, if any improvement or update is made, I will most likely going to miss it and in any case I should manually re-code it into my website.

Additional context Add any other context or screenshots about the feature request here.

binyamin commented 2 years ago

I can totally see the need here. Initially, I thought about just making a plugin. The problem is, the backlinks rely on computed data. The last time I checked, you can't add computed from within a plugin.

Edit: I just tried it. You can compute global data. I will look into this.

xplosionmind commented 2 years ago

I will look into this.

This sounds awesome! Thanks a lot 🚀

binyamin commented 2 years ago

@xplosionmind Et voilà - https://www.npmjs.com/package/eleventy-plugin-backlinks