<p>So, upon further thinking, I've decided that splitting <code>#content</code> into <code>.content-heading</code> and <code>.content-body</code> is a very good idea. This should happen on every page. I had converted a handful of views to this pattern by hand, but I believe this is not the right approach. A more maintainable way to do this would be to built it into the application logic. We should feed two separate chunks into <code>#content</code>: The header, and then the body, separately. I'm not sure about the best way to go about doing this, so <a href="https://github.com/ppawel" class="user-mention">@ppawel</a> , if you have ideas or want to just go ahead and implement this, that would be amazing.</p>
<p>When I asked <a href="https://github.com/tomhughes" class="user-mention">@tomhughes</a> about this, he said, </p>
<blockquote>
<p>You can add common bits to views/layout/site.html.erb with yield calls to callback to content_for blocks where you need customisation. If some pages don't need it then you could add a new layout and factor common bits of that and the existing one into partials</p>
</blockquote>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/150#issuecomment-9923530'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpvY1nXfsLaHWfN3KRT0HXrJb7YYpF7-kT-Meem3i3iOD.gif' height='1' width='1'>