feat(lessons): Add lessons modules

This commit is contained in:
Khaled Garbaya
2017-09-27 11:50:00 +02:00
committed by Benedikt Rötsch
parent 1875c99a4c
commit 62ecdfe60c
7 changed files with 43 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
extends layout
include mixins/_lesson
block content
.wrapper.wrapper-with-sidebar
section.wrapper__sidebar
@@ -15,8 +17,7 @@ block content
h1= course.fields.title
if lesson
h2= lesson.fields.title
p !{helpers.markdown(lesson.fields.description)}
+lesson(lesson)
if lessonIndex + 1< lessons.length
a.cta(href=`/courses/${course.fields.slug}/lessons/${lessons[lessonIndex + 1].fields.slug}`) View next lesson
else