Skip to content

Commit

Permalink
Update to Version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kazemnejad committed Apr 14, 2020
1 parent f432949 commit fc1b33b
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 9 deletions.
6 changes: 3 additions & 3 deletions _events/sample_exam_due.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ description: 'Midterm'
hide_from_announcments: true
---
**Topics:**
<br> - Topic 1
<br> - Topic 2
<br> - Topic 3
1. Topic 1
2. Topic 2
3. Topic 3
2 changes: 1 addition & 1 deletion _includes/schedule_row_exam.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<div class="col col-2" style="font-weight: bold" data-label="Description">
{{ include.event.description }}
</div>
<div class="col col-4" data-label="Course Material">
<div class="col col-4 markdown-content" data-label="Course Material">
{{ include.event.content}}
</div>
6 changes: 3 additions & 3 deletions _includes/schedule_row_lecture.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
{% include lecture_links.html lecture=include.event %}
</div>
</div>
<div class="col col-4" data-label="Course Material">
{% if include.event.suggested_readings %}
<div class="col col-4 markdown-content" data-label="Course Material">
<!-- {% if include.event.suggested_readings %}
<p style="margin-bottom: 2px">Suggested Readings:</p>
<ul>
{% for m in include.event.suggested_readings %}
Expand All @@ -19,7 +19,7 @@
{% endfor %}
</ul>
{% endif %}
{% endif %} -->
{% if include.event.content != '' %}
{{ event.content }}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion _includes/schedule_row_raw_event.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
<br class="date-spliter" />{{ include.event.date | date: "%A" }}
</div>
<div class="col col-2" data-label="Description">{{ include.event.description }}</div>
<div class="col col-4" data-label="Course Material">{{ include.event.content }}</div>
<div class="col col-4 markdown-content" data-label="Course Material">{{ include.event.content }}</div>
7 changes: 7 additions & 0 deletions _layouts/lectures.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
<strong>
{% include lecture_links.html lecture=lecture %}
</strong>

{% if lecture.content != '' %}
<br/>
<div class="markdown-content" style="margin-top: 3px;">
{{ lecture.content }}
</div>
{% endif %}
</div>
</div>
</li>
Expand Down
3 changes: 3 additions & 0 deletions _lectures/01_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ links:
- url: https://google.com
name: slides
---
**Suggested Readings:**
- [Readings 1](http://example.com)
- [Readings 2](http://example.com)
14 changes: 13 additions & 1 deletion _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -494,4 +494,16 @@ a.tosu {
.schedule-lecture-links {
font-weight: normal;
font-family: inherit;
}
}

.markdown-content {
p,ol {
margin-bottom: 3px;
}

li {
padding: 0px;
display: list-item !important;
border-bottom: 0 !important;
}
}

0 comments on commit fc1b33b

Please sign in to comment.