{% load i18n %} {% block title %}{% if title %}{{ title }}{% else %}{% trans 'Welcome' %}{% endif %}{% endblock %} {% comment %} The title can be defined in either the 'title' context variable, or by overriding the 'title' block (useful when relying on 3rd-party views that we cannot add context variables to). {% endcomment %}