Replies: 2 comments 2 replies
-
This is also useful when trying to take advantage of the different routes functionality in order to have different knowledge-bases (possibly managed by different people) as submodules of a larger knowledge-base. In this case, not having all the information in the individual submodules is not very convenient. It seems that there is acceptance for this idea; if someone can point me to a direction on where to start, I could possibly try to implement it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the current implementation, if you have a directory that you want to have it's own "landing page" upon clicking the directory, you need to define such a file at the root. Illustrating...
Case 1: A self-contained collection:
In the generated emanote site, if you click on the
literature-notes
folder in the sidebar (let's call this page it's "index") you'll see some content along with the notice:and it will expect the file to be in the root, like so:
I propose that it be possible to define this "index file" within the directory itself, so as to avoid polluting the environment outside of itself. like so:
Or even:
Although I can see a good argument for wanting to have it both ways or even merging the two. see below:
Case 2: A category that warrants a separate treatment outside of the directory
Imagine you have a personal website that describes some aspects of your life. You might want a "hobbies" file that talks about how you feel about hobbies in general, along with a "hobbies/" directory that lists yours.
In
/hobbies.md
you might talk about research surrounding hobbies. You may also refer to[my hobbies](/hobbies/)
so a visitor can learn more about yours in particular./hobbies/index.md
may give some preamble and then list the members of the directory - entirely different purpose than the root-levelhobbies.md
.Case 3: Merging
Perhaps if you have both
/hobbies.md
and one of/hobbies/index.md
or/hobbies/hobbies.md
, then the contents of the root-level/hobbies.md
should be merged into the generated output of the leaf-level/hobbies/hobbies/md
somewhere. Perhaps this should be optional.Beta Was this translation helpful? Give feedback.
All reactions