binyamin / eleventy-garden

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

Allow subfolders within the notes folder #9

Closed RosieCampbell closed 4 years ago

RosieCampbell commented 4 years ago

I'd like to be able to organize my notes into folders e.g. 'Recipes', 'Evergreen notes' etc - currently this doesn't work.

I'm not sure if the folder hierarchy should be reflected in the URL (e.g. /Recipes/Tomato-soup) or if it should just resolve to the note name (e.g. /Tomato-soup). Maybe this could be configurable?

binyamin commented 4 years ago

...currently this doesn't work

Can you elaborate on that please? It worked for me when I added a page within a subfolder.

The only thing was that when I linked to it, I had to include the subfolder in the link, as in [[ subfolder/note | note]]. This is important, because the subfolder could have a note with the same name as a note in the main folder.

RosieCampbell commented 4 years ago

You're right! It works when I include the subfolder. Awesome!

binyamin commented 4 years ago

This should probably be documented somewhere...

binyamin commented 4 years ago

Documented in wiki faq