diff --git a/bloggy/settings.py b/bloggy/settings.py
index 6f9aa4b..dc89db8 100644
--- a/bloggy/settings.py
+++ b/bloggy/settings.py
@@ -282,7 +282,8 @@
CACHE_TTL = 60 * 15
CACHE_MIDDLEWARE_ALIAS = 'default' # which cache alias to use
CACHE_MIDDLEWARE_SECONDS = CACHE_TTL # number of seconds to cache a page for (TTL)
-CACHE_MIDDLEWARE_KEY_PREFIX = '' # should be used if the cache is shared across multiple sites that use the same Django instance
+CACHE_MIDDLEWARE_KEY_PREFIX = '' # should be used if the cache is shared across multiple sites that use the same
+
ENABLE_CACHING = os.getenv("ENABLE_CACHING", "False") == "True"
if ENABLE_CACHING:
diff --git a/bloggy/templates/pages/single/course.html b/bloggy/templates/pages/single/course.html
index 2dd3a47..dcb73ca 100644
--- a/bloggy/templates/pages/single/course.html
+++ b/bloggy/templates/pages/single/course.html
@@ -74,8 +74,7 @@
{{ course.title }}
{% url 'lesson_single' course=course.slug slug=lesson.slug as current_url %}
+ class="text-decoration-none h3 text-dark p-0 m-0 w-500">{{ lesson.title }}
{{ lesson.excerpt }}
{% endfor %}
diff --git a/bloggy/templates/partials/lesson_single_toc.html b/bloggy/templates/partials/lesson_single_toc.html
index b0cd6aa..1542b0d 100644
--- a/bloggy/templates/partials/lesson_single_toc.html
+++ b/bloggy/templates/partials/lesson_single_toc.html
@@ -9,7 +9,7 @@ {{ course.title }}
{% url 'lesson_single' course=course.slug slug=lesson.slug as current_url %}
Chapter {{ forloop.counter }}: {{ lesson.title }}
+ class="text-decoration-none text-dark p-0 m-0 w-500 font-sm">{{ lesson.title }}
{% endfor %}
diff --git a/bloggy/views/courses_view.py b/bloggy/views/courses_view.py
index a064034..fea0d9b 100644
--- a/bloggy/views/courses_view.py
+++ b/bloggy/views/courses_view.py
@@ -50,11 +50,7 @@ class CourseDetailsView(HitCountDetailView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
- context['meta_title'] = self.object.meta_title
- context['meta_description'] = self.object.meta_description
- context['meta_keywords'] = self.object.meta_keywords
- if self.object.thumbnail:
- context['meta_image'] = self.object.thumbnail.url
+ set_seo_settings(post=self.object, context=context)
return context
diff --git a/bloggy/views/posts.py b/bloggy/views/posts.py
index fc6156a..d2ece34 100644
--- a/bloggy/views/posts.py
+++ b/bloggy/views/posts.py
@@ -61,6 +61,5 @@ def get_context_data(self, **kwargs):
raise HttpResponse('Unauthorized', status=401)
context = super().get_context_data(**kwargs)
- # SEO settings
set_seo_settings(post=self.object, context=context)
return context
diff --git a/seo_settings.json b/seo_settings.json
index 273c5d0..f01707c 100644
--- a/seo_settings.json
+++ b/seo_settings.json
@@ -19,6 +19,11 @@
"meta_description": "Browse from collection of tutorials and courses organized by categories to make learning easy and accessible.",
"meta_keywords": "stacktips categories, stack tips topics, browse by topics, stacktips categories, tutorial categories, tutorial categories, all tutorials by category, android, django, python, django, spring, spring boot, git"
},
+ "/quizzes": {
+ "meta_title": "Interactive Quizzes",
+ "meta_description": "Use StackTips to test your coding skills and gauge your learning progress in a fun way",
+ "meta_keywords": "stacktips quizzes, stack tips quiz test, quizlzet, take a quiz, practice test, aws quiz, python test, advance python test, aws practitioner test, CLF-C01 AWS test, aws CLF-C01 quiz"
+ },
"/contact": {
"meta_title": "Get in touch",
"meta_description": "If you have any questions or have suggestions to improve the quality, let us know."