{# Load navigation_tags at the top of the file: #}
{% load navigation_tags %}

<footer>
    <p>Built with Wagtail</p>

    {% with youtube_url=settings.base.NavigationSettings.youtube_url instagram_url=settings.base.NavigationSettings.instagram_url facebook_url=settings.base.NavigationSettings.facebook_url gitea_url=settings.base.NavigationSettings.gitea_url %}
        {% if youtube_url or instagram_url or facebook_url or gitea_url %}
            <p>
                Follow us on:
                {% if youtube_url %}
                    <a href="{{ youtube_url }}">Youtube</a>
                {% endif %}
                {% if instagram_url %}
                    <a href="{{ instagram_url }}">Instagram</a>
                {% endif %}
                {% if facebook_url %}
                    <a href="{{ facebook_url }}">Facebook</a>
                {% endif %}
				{% if gitea_url %}
				    <a href="{{ gitea_url }}">Gitea</a>
				{% endif %}
            </p>
        {% endif %}
    {% endwith %}

	{# Add footer_text: #}
	{% get_footer_text %}
</footer>