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
Allow to customize the YYYY-MM-DD rule for given folder.
Thus allowing specified folder to have custom rule to sort content:
pages-mardown/
├ docs/
├ feat-A-doc1.md
├ feat-A-doc2.md
├ feat-B-doc1.md
├ feat-B-doc2.md
├ feat-B-doc3.md
``
## how to?
Please take example to the function `include` in the NextMarkdownConfig type, where `include` has a default behavior that can be overridden.
The text was updated successfully, but these errors were encountered:
frouo
changed the title
Allow to customize the YYYY-MM-DD rule for given folder
feat: allow to customize the YYYY-MM-DD rule for given folder
Apr 4, 2022
rule 1: we keep the prefix _ rule : files starting with _ will be ignored (ie. next-markdown won't create a path for it). It allows to easily publish / unpublish a page
rule 2: in a given folder, every files (except index.md) will be listed in the index.md rendered page.
rule 3: if any, text within the brackets at the beginning of the file (but after _ see rule 1) will be ignored (eg: file [feat1]hello_world.md will create /hello_world)
Note: having bracket is totally optional (cf. rule 2)
Answer: create a folder; cf. rule 2: only files will be listed in the index.md rendered page.
In the following example, /docs/contribution will not be listed in the rendering of /docs
frouo
changed the title
feat: allow to customize the YYYY-MM-DD rule for given folder
feat: enhance blog-aware rules to handle more use cases (blog, docs...)
Apr 8, 2022
Purpose
Allow to customize the YYYY-MM-DD rule for given folder.
Thus allowing specified folder to have custom rule to sort content:
The text was updated successfully, but these errors were encountered: