{# Set logo title from page.style.logo.title setting, and default #} {% set logo_title = page.style.logo.title|default("Logo Here") %} {# Set logo content to image or text #} {% set logo_content %} {% if page.style.logo.use_image %} {{ logo_title }} {% else %} {{ logo_title|trim }} {% endif %} {% endset %} {# logo classes #} {% if page.style.logo.use_image %}{% set logo_classes = ' logo-image' %}{% endif %} {# write the html, hide logo if 'hide' in style.logo or logo.content #}