'Add a hero element if specified in content or hooks.
Hero elements get full page width.'

def add_hero(self, context):

    context.hero = u''
    if (u'<!--    start-hero    -->' in context.main_section):
        parts1 = context.main_section.split(u'<!--    start-hero    -->')
        parts2 = parts1[1].split(u'<!--    end-hero    -->')
        context.main_section = (parts1[0] + parts2[1])
        context.hero = parts2[0]
