Open ejiektpobehuk opened 3 years ago
In my application of this theme there is no
authors
directory andprivate-policy/_index.md
is moved toprivate-policy.md
. This allows to have an autogenerated navbar.
It's a good suggestion, and it's a good idea to get the section from the current_path
. I will improve the code just like what you have done. If you have finished the code, welcome to pull a request to improve it. Thanks very much.
In my application of this theme there is no
authors
directory andprivate-policy/_index.md
is moved toprivate-policy.md
. This allows to have an autogenerated navbar.Example of a generator used in
templates/macros/header.html
I find it to be a neat feature, but fallback strategy is not clear to me. What would you say about using embedded navbar when there are no sections in a content dir or a config file. When there are sections in the content dir, but not in the config file, we use them. Whet there are menu entries in the config we use only them even if there others in the sections folder.