diff options
Diffstat (limited to 'theme/templates/page.html')
-rw-r--r-- | theme/templates/page.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/theme/templates/page.html b/theme/templates/page.html index 6f5115f..1467e68 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -55,6 +55,13 @@ <pre><code>{% autoescape false %}{{ section.code.base|code }}{% endautoescape %}</code></pre> {% set exercise = exercise + 1 %} </div> + {% elif section.type == "quiz" %} + <div class="quiz"> + <div class="exercise-header">Exercise #{{ exercise }}</div> + {% autoescape false %}{{ section.content }}{% endautoescape %} + {% autoescape false %}{{ section.quiz.base }}{% endautoescape %} + {% set exercise = exercise + 1 %} + </div> {% endif %} {% endfor %} </article> @@ -79,6 +86,13 @@ <pre><code>{% autoescape false %}{{ section.code.base|code }}{% endautoescape %}</code></pre> {% set exercise = exercise + 1 %} </div> + {% elif section.type == "quiz" %} + <div class="quiz"> + <div class="exercise-header">Exercise #{{ exercise }}</div> + {% autoescape false %}{{ section.content }}{% endautoescape %} + {% autoescape false %}{{ section.quiz.base }}{% endautoescape %} + {% set exercise = exercise + 1 %} + </div> {% endif %} {% endfor %} </article> @@ -108,6 +122,13 @@ <pre><code>{% autoescape false %}{{ section.code.solution|code }}{% endautoescape %}</code></pre> {% set exercise = exercise + 1 %} </div> + {% elif section.type == "quiz" %} + <div class="quiz"> + <div class="exercise-header">Exercise #{{ exercise }}</div> + {% autoescape false %}{{ section.content }}{% endautoescape %} + {% autoescape false %}{{ section.quiz.solution }}{% endautoescape %} + {% set exercise = exercise + 1 %} + </div> {% endif %} {% endfor %} {% endif %} |