BennyHallett / obelisk

Static Site Generator written in Elixir.
MIT License
393 stars 34 forks source link

Ordered Content #8

Open BennyHallett opened 10 years ago

BennyHallett commented 10 years ago

I'd like to have to ability to create a set of pages that have ordered content, which could be used for creating a manual for a software product, or an online book.

I think it could be done with content placed in /pages, with some kind of convention around page numbering. I.E /pages/1-Introduction.markdown, and sub content like /pages/1-1-Subintro.markdown

When this content is being processed, we should maintain a data structure that represents the contents of these ordered pages, such that we can easily drop it into a sidebar.

optikfluffel commented 9 years ago

Maybe at least /pages/01-Introduction.markdown and /pages/01-01-Subintro.markdown because otherwise I'm sure some file managers will put them in wrong order, aka: 1, 10, 11, 2, 20, 3, ...