{% apply spaceless %} {% set description = description|default(globals.site_info.description) %} {% if title is defined %} {% set browser_title = title ~ ' :: ' ~ globals.site_info.name %} {% else %} {% set browser_title = globals.site_info.name %} {% endif %} {{ browser_title }} {% if description|length > 0 %} {% endif %} {% if image is defined %} {% if image|slice(0, 1) == '/' %} {% set image = globals.site_info.url is not empty ? (globals.site_info.url ~ image) : '' %} {% endif %} {% if image|length > 0 %} {% endif %} {% endif %} {% if canonical_url is defined %} {% if canonical_url|slice(0, 1) == '/' %} {% set canonical_url = globals.site_info.url is not empty ? (globals.site_info.url ~ canonical_url) : '' %} {% endif %} {% if canonical_url|length > 0 %} {% endif %} {% endif %} {% if feeds is defined and feeds is iterable %} {% for feed in feeds %} {% endfor %} {% endif %} {% endapply %}