Recipes

Each Nesta Recipe shows how to approach a common task, such as adding author biographies or setting up syntax highlighting. They include example code that you can use in your own site, or as inspiration for how to get the most out of Nesta.

If you've got an idea for a new recipe, we'd love to hear about it (you can email your idea to the mailing list at nesta@librelist.com, or contact @nestacms on Twitter).

Credit for the idea of publishing a list of recipes goes to Adam Stakoviac of The Changelog fame.

The Recipes

  1. Refresh the browser when you save a file

    Most of the pages on a Nesta site are written in a text editor, using Markdown or Textile. You don't get to see what your words look like on a web page you save the file to disk and reload your browser. Wouldn't it be nice if your browser automatically reloaded pages as you saved them? When designing a theme, what if changes to HTML and CSS were reloaded immediately?

    Continue reading

  2. Using a different Markdown processor

    There are a handful of Markdown processing libraries available for Ruby, each with different advantages and features. Since version 0.9.11, Nesta uses Ryan Tomayko's [Tilt][] library to work out which processor to use when rendering a file within your content folder, which will try and pick a suitable processor for you. This recipe shows you how to change it.

    Continue reading

  3. Adding author biographies to articles

    Imagine for a moment that you run a blog that frequently runs articles from guest bloggers. They provide the content, and in return get some publicity and a link back to their own site from the bottom of their article. What's the best way to do this with Nesta?

    Continue reading