Set home title

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-06-08 00:50:32 +02:00
parent e258e6a337
commit 2c8f6f22f2
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,8 @@
{% load i18n %}
{% block content-title %}{% endblock %}
{% block content %}
<div class="jumbotron p-5">
<div class="row text-center">

View File

@ -2,6 +2,8 @@
{% load i18n %}
{% block content-title %}{% endblock %}
{% block content %}
<div class="jumbotron p-5">
<div class="row text-center">

View File

@ -30,7 +30,8 @@ from .views import AdminSearchView
urlpatterns = [
# TODO ETEAM Rendre ça plus joli
path('', TemplateView.as_view(template_name=f"index_{settings.TFJM_APP.lower()}.html", extra_context=_("Home")),
path('', TemplateView.as_view(template_name=f"index_{settings.TFJM_APP.lower()}.html",
extra_context={'title': _("Home")}),
name='index'),
path('about/', TemplateView.as_view(template_name="about.html"), name='about'),
path('i18n/', include('django.conf.urls.i18n')),