[openstreetmap-website] Site cleanup (#150)
Tom Hughes
notifications at github.com
Tue Oct 30 21:32:26 GMT 2012
So basically what I meant was that you add to `app/views/layouts/site.html.erb` something like:
```erb
<div id="content-heading">
<%= yield :heading %>
</div>
```
and then individual pages you can add a block like:
```erb
<% content_for :heading %>
<p>...</p>
<% end %>
```
which will specify what goes in the heading, and everything else will go in the body.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/150#issuecomment-9923740
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20121030/cd50a304/attachment.html>
More information about the rails-dev
mailing list