Closed frouo closed 2 years ago
_
rule : files starting with _
will be ignored (ie. next-markdown won't create a path for it). It allows to easily publish / unpublish a pageindex.md
) will be listed in the index.md
rendered page._
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)
brackets | |
---|---|
![]() |
![]() |
The index.md
rendered page will received props:
props: {
...
posts: [
{
...
nextmd: [docs, get-started]
},
{
...
nextmd: [docs, blog-aware]
},
{
...
nextmd: [docs, dynamic-routes]
},
{
...
nextmd: [docs, table-of-contents]
},
{
...
nextmd: [docs, examples]
},
{
...
nextmd: [docs, contributing]
},
]
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
Purpose
Allow to customize the YYYY-MM-DD rule for given folder.
Thus allowing specified folder to have custom rule to sort content: