diff --git a/templates/courses/lesson.html b/templates/courses/lesson.html index a73ee1b..1a1b2b5 100644 --- a/templates/courses/lesson.html +++ b/templates/courses/lesson.html @@ -1,5 +1,8 @@ {% extends 'layout.html' %} {% block title %}{{ course.name }} : {{ lesson.name }}{% endblock %} +{% block og_title %}{{ course.name }} : {{ lesson.name }}{% endblock %} +{% block description %}{{ lesson.description|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 a74171f..21c24c8 100644 --- a/templates/courses/show.html +++ b/templates/courses/show.html @@ -1,5 +1,8 @@ {% extends 'layout.html' %} {% block title %}{{ course.name }}{% endblock %} +{% block og_title %}{{ course.name }}{% endblock %} +{% block 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 61b721c..86d30ac 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -16,7 +16,7 @@ - +