From 646a7b723fff1f75d2085d89a2587897f2501b87 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Wed, 19 May 2021 20:12:35 +0530 Subject: [PATCH] fix: fix broken pagination links --- community/www/courses/learn/index.html | 27 ++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/community/www/courses/learn/index.html b/community/www/courses/learn/index.html index 3dbd5adf..24cf5504 100644 --- a/community/www/courses/learn/index.html +++ b/community/www/courses/learn/index.html @@ -26,14 +26,7 @@
-
- {% if prev_url %} - ← Prev - {% endif %} - {% if next_url %} - Next → - {% endif %} -
+ {{ pagination(prev_url, next_url) }}

{{ lesson.title }}

@@ -43,10 +36,8 @@
{% endfor %} - + {{ pagination(prev_url, next_url) }} +
{% endblock %} @@ -76,6 +67,18 @@ {% endmacro %} +{% macro pagination(prev_url, next_url) %} +
+ {% if prev_url %} + ← Prev + {% endif %} + {% if next_url %} + Next → + {% endif %} +
+
+{% endmacro %} + {%- block script %} {{ super() }} {{ LiveCodeEditorJS() }}