From 11dcc6eaa98210cbd3c58079940d28a3f29f670d Mon Sep 17 00:00:00 2001 From: mrtoine Date: Mon, 15 Dec 2025 07:29:09 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20blocs=20`og=5Fdescription`=20dans?= =?UTF-8?q?=20les=20templates=20pour=20am=C3=A9liorer=20le=20SEO.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/courses/lesson.html | 1 + templates/courses/show.html | 1 + templates/layout.html | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/courses/lesson.html b/templates/courses/lesson.html index f49b9ad..23ee55b 100644 --- a/templates/courses/lesson.html +++ b/templates/courses/lesson.html @@ -2,6 +2,7 @@ {% block title %}{{ course.name }} : {{ lesson.name }}{% endblock %} {% block og_title %}{{ course.name }} : {{ lesson.name }}{% endblock %} {% block description %}{{ lesson.content|truncatewords:20 }}{% endblock %} +{% block og_description %}{{ lesson.content|truncatewords:20 }}{% endblock %} {% block og_image %}{{ course.thumbnail.url }}{% endblock %} {% block content %} diff --git a/templates/courses/show.html b/templates/courses/show.html index 21c24c8..6082ba6 100644 --- a/templates/courses/show.html +++ b/templates/courses/show.html @@ -2,6 +2,7 @@ {% block title %}{{ course.name }}{% endblock %} {% block og_title %}{{ course.name }}{% endblock %} {% block description %}{{ course.description|truncatewords:20 }}{% endblock %} +{% block og_description %}{{ course.description|truncatewords:20 }}{% endblock %} {% block og_image %}{{ course.thumbnail.url }}{% endblock %} {% block content %} diff --git a/templates/layout.html b/templates/layout.html index d4a7981..86d30ac 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -15,7 +15,7 @@ - +