The max-age cache header is set on a per-page basis; the place to configure this is clearly on the page itself. We need to be able to configure it for the home page, and any site more complicated than a simple blog will need content on the home page anyway.
Tasks
[DONE] Get the nesta new command to create content/pages/index.haml.
[DONE] Move the body content of views/index.haml into this page; render it with views/page.haml, just like any other page.
The max-age cache header is set on a per-page basis; the place to configure this is clearly on the page itself. We need to be able to configure it for the home page, and any site more complicated than a simple blog will need content on the home page anyway.
Tasks
nesta new
command to createcontent/pages/index.haml
.views/index.haml
into this page; render it withviews/page.haml
, just like any other page.