Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Feature: Sortable contents #3

Open
rathesDot opened this issue Nov 18, 2017 · 1 comment
Open

Feature: Sortable contents #3

rathesDot opened this issue Nov 18, 2017 · 1 comment

Comments

@rathesDot
Copy link
Member

Currently the content pages stored in the same directory have no specific sort order. But there should be a way so that the Menu implemented in #2 can be used to render the menu in a desired order.

The first idea is to simply add a prefix to the filenames: 1-index.md is the first page and 2-test.md is the second page ... Therefore one must update the RouteResolver, but you would not need any extra configuration file.

@rathesDot
Copy link
Member Author

In #18 we refactored to use directories. So now, instead of renaming the file, we would rename the directory.

We should make sure that the separator (in the example above the -) is configurable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant