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 %} -
- ← Prev - Next → -
+ {{ 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() }}