{% if title is empty %}
    {% set title = p.title %}
{% endif %}

{% if title is not empty %}

    <div class="pageHeading {{ class }}">

        {% if icon is not empty %}
            <div class="iconWrap">
                <div class="icon">
                    {{ file_get_contents(settings.SITE_PATH ~ settings.THEME_URL ~ '/images/svgs/' ~ icon ~ '.svg')|raw }}
                </div> <!-- .icon -->
            </div> <!-- .iconWrap -->
        {% endif %}

        <h1>{{ title }}</h1>

        {% if content is not empty %}
            <p>{{ content }}</p>
        {% endif %}

    </div> <!-- .pageHeading -->

{% endif %}
