cloudfour / drizzle

A streamlined tool for developing, documenting and presenting UI pattern libraries.
https://cloudfour.com/thinks/introducing-drizzle/
MIT License
666 stars 32 forks source link

Standalone pages #100

Closed edouard-lopez closed 6 years ago

edouard-lopez commented 6 years ago

Is it possible to create pages that live outside the main navigation and use their own templates?

For instance, we want to create full standalone page to demonstrate some layout (e.g. mobile, hero, etc.)

tylersticka commented 6 years ago

It is!

Any page in the pages/ directory will be output, and you can specify a layout template in Frontmatter.

For example, in our cloudfour.com pattern library we have a pages/sandbox/ directory for page prototypes: https://github.com/cloudfour/cloudfour.com-patterns/tree/master/src/pages/sandbox

These reference layout templates found here in the Frontmatter: https://github.com/cloudfour/cloudfour.com-patterns/tree/master/src/templates/toolkit

edouard-lopez commented 6 years ago

Thanks the layout property do indeed fit my need.