Skip to content

Commit

Permalink
Markdownifying questions, keypoints, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvwilson committed Jun 26, 2016
1 parent 519cd35 commit c3a1639
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions _includes/all_keypoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ <h2>Key Points</h2>
</td>
<td class="col-md-9">
<ul>
{% for keypoint in episode.keypoints %}
<li>{{ keypoint }}</li>
{% endfor %}
{% for keypoint in episode.keypoints %}
<li>{{ keypoint|markdownify }}</li>
{% endfor %}
</ul>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion _includes/episode_keypoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h2>Key Points</h2>
<ul>
{% for keypoint in page.keypoints %}
<li>{{ keypoint }}</li>
<li>{{ keypoint|markdownify }}</li>
{% endfor %}
</ul>
</blockquote>
4 changes: 2 additions & 2 deletions _includes/episode_overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h2>Overview</h2>
<strong>Questions</strong>
<ul>
{% for question in page.questions %}
<li>{{ question }}</li>
<li>{{ question|markdownify }}</li>
{% endfor %}
</ul>
</div>
Expand All @@ -27,7 +27,7 @@ <h2>Overview</h2>
<strong>Objectives</strong>
<ul>
{% for objective in page.objectives %}
<li>{{ objective }}</li>
<li>{{ objective|markdownify }}</li>
{% endfor %}
</ul>
</div>
Expand Down
7 changes: 6 additions & 1 deletion _includes/syllabus.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ <h2>Schedule</h2>
Break
{% else %}
{% if episode.questions %}
{{ episode.questions | join: '<br/>' }}
{% for question in episode.questions %}
{{question|markdownify|strip_html}}
{% unless forloop.last %}
<br/>
{% endunless %}
{% endfor %}
{% endif %}
{% endif %}
</td>
Expand Down
1 change: 0 additions & 1 deletion assets/css/lesson.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ ol {
padding-left: 1em;
}


span.fold-unfold {
margin-left: 1em;
opacity: 0.5;
Expand Down

0 comments on commit c3a1639

Please sign in to comment.