Search code examples
middleman

How are parent and children pages structured in middleman?


Using middleman, how is the directory stucture under the "source" directory intended to be if I want to have parent and child pages?

Any directions to examples are welcome!


Solution

  • Source folder structure

    source/
      index.html.md
      foo.html.erb
      foo/
        bar.html.haml
    

    Resulting URLs

    Provided that you have directory_indexes activated (more info here: Pretty URLs).

    http://example.com/
    http://example.com/foo/
    http://example.com/foo/bar/