Skip to content

Commit

Permalink
Add due dates to lessons
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Aug 31, 2020
1 parent 83b924c commit 3f303c6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ a.reading:before {
background-image: url(img/book.svg);
}

a.due:before {
background-image: url(img/calendar.svg);
}

ul.links {
list-style: none;
padding-left: 1.5em;
Expand Down
1 change: 1 addition & 0 deletions static/img/calendar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions templates/lesson.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ <h1>
{% endif %}
</li>
{% endfor %}
{% if page.extra.due %}
<li>
<a href="#tasks" class="icon due">tasks</a> due <strong>{{page.extra.due}}</strong>
</li>
{% endif %}
</ul>
{% if page.extra.videos %}
<div class="videos">
Expand Down

0 comments on commit 3f303c6

Please sign in to comment.