You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, when I go into posts I will see Tech and Personal at the top level. I would also like to see the expanded view of Tech though, and possibly even the expanded view of the most recent year (2022).
Describe alternatives you've considered
The solution I was considering was to add a parameter to the _index.md file for these folders to set expand. The default would be false (as is) and would only change if explicitly set.
That's a shame. Not sure where else something like that could go?
Perhaps a single expandedPosts could be set in config,toml that could be either a menu or a post tag, and everything down to that would expand automatically? That would get most of the way there, even if it's not quite as flexible as being able to set true/false individually.
Allow ToC to expand sections by default
Say I have a posts structure as follows:
At the moment, when I go into posts I will see
Tech
andPersonal
at the top level. I would also like to see the expanded view ofTech
though, and possibly even the expanded view of the most recent year (2022).Describe alternatives you've considered
The solution I was considering was to add a parameter to the
_index.md
file for these folders to setexpand
. The default would befalse
(as is) and would only change if explicitly set.So, eg.
If this is set then the section is expanded by default when the page is created.
Additional context
N/A
The text was updated successfully, but these errors were encountered: