Dynamic page titles in Mephisto

This should make your page titles reflect the section you are in. Its a bit ugly because I don't know the correct syntax for if and else if statements in Ruby so if anyone sees this and wants to make it neater please post a comment.

{{site.title}} -
{% if article %}
{{ article.title }}
{% else %}
{% if section.name == 'Home' %}
{{ site.subtitle }}
{% else %}
{{ section.name }}
{% endif %}
{% endif %}