Closed NightMachinery closed 3 years ago
I think I see what you mean. #+FIRN_UNDER
is intended for flat-file structures and thus arbitrary decisions of what "goes under" what. This will continue to be Firn's method for organizing information. However, I think a file-system index/site-map makes sense. However, unfortunately, as this is not my use case for Firn, I have no intention to build this functionality. I would however accept a PR on this. In case anyone is interested in submitting a PR the following would need to be done:
In firn/build.clj
make-site-map
does, except it builds a tree structure from a file's path, rather than firn-under
values.process-all
under a key such as :site-map-fs
.In firn/markup.clj
render-site-map-from-fs
, which will render html from the site-map-fs
values.render-sitemap
to render-sitemap-from-firn-under
firn-under
(render :sitemap {:filesystem true})
And of course, write tests.
Thanks for the suggestion!
Thanks! Publishing my notes is not currently a priority for me, but when I find the time for it, I'll send a PR. I'll have to find a way to fix the ID links as well, since without those all my links will break.
If anyone knows a site generator that supports a workflow of nested directories, please let me know.
I organize my notes using the filesystem directory (which makes it really easy to integrate with a lot of unspecialized tools). I wonder if it's possible to use this hierarchy instead of
#+FIRN_UNDER
?E.g., I have:
I like to see these as a tree-like sitemap on my index page. Ideally, each file also contains a tree-like sitemap of its parent directory.