example/config/routes.yml in pieces-0.1.0 vs example/config/routes.yml in pieces-0.2.0
- old
+ new
@@ -1,26 +1,35 @@
_global:
title_suffix: 'Your Site'
+ footer_text: 'Hey'
-_layout: 'layout'
-
index:
_global:
title: 'Home'
- pieces:
- - post:
- title: 'A block title'
- content: '<p>Some paragraph</p>'
- - post:
- title: 'Another'
- content: '<p>Another thing.</p>'
- - post:
- title: 'And another'
- content: '<p>Blah blah blah.</p>'
+ _pieces:
+ - layouts/layout:
+ _pieces:
+ - header: {}
+ - posts:
+ _pieces:
+ - posts/post:
+ title: 'A block title'
+ content: '<p>Some paragraph</p>'
+ - posts/post:
+ title: 'Another'
+ content: '<p>Another thing.</p>'
+ - posts/post:
+ title: 'And another'
+ content: '<p>Blah blah blah.</p>'
+ - footer: {}
about:
_global:
title: 'About'
- pieces:
- - post:
- title: 'About Author'
- content: '<p>He is a cool dude.</p>'
+ _pieces:
+ - layouts/layout:
+ _pieces:
+ - header: {}
+ - posts/post:
+ title: 'About Author'
+ content: '<p>He is a cool dude.</p>'
+ - footer: {}