O'Reilly logo

Grunt Cookbook by Jurie-Jan Botha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and using a site layout

Having a consistent layout across a site can drastically improve its usability and also save time in its development. The Assemble framework allows us to easily create and use layouts in various ways.

Getting ready

In this recipe we'll continue working on the project from the Adding data to the site recipe in this chapter. Be sure to refer to it if you are not yet familiar with it's contents. Before we start we should also make sure that the site builder and server are running. If they aren't yet running they can be started using the grunt server command

How to do it...

The following steps take us through creating a new layout template and setting up some sample blog pages that use it.

  1. First, we'll create a new layout ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required