-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcourse-card.html
More file actions
18 lines (17 loc) · 1.37 KB
/
course-card.html
File metadata and controls
18 lines (17 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{%- assign slug = include.slug | default: include.title | slugify -%}
{%- comment %}Note .coursecard class also used by buggytrack.js{% endcomment -%}
<div class="coursecard"><a type="button" class="courselink" {% if include.url contains "http" and include.value %}ga-event-value="{{ include.value }}" data-content-authors="{{ include.lecturers | join: ", " }}"{% endif %} href="{{ include.url }}"><div class="inner-coursecard">
<h3 id="{{ slug }}">{{ include.title }}</h3>
<div class="coursedesc">
<div class="descrow">
<div class="cicon"><i class="{{ include.icon }}"></i></div>
<div class="cdesc">{{ include.description | markdownify }}</div>
<div class="ccredits"><i class="far fa-clock"></i><br>~{{ include.time }} hrs</div>
</div>{% if include.lecturers.size > 0 or include.bauthors.size > 0 %}
<div class="featuringrow">
<div class="flabel"><strong>{% if include.bauthors.size > 0 %}Featuring{% else %}Taught by{% endif %}</strong>:</div>
{% if include.lecturers.size > 0 %}<div class="lecturers"><i class="fas fa-person-chalkboard"></i> {% include_cached content_authors_string.html authors=include.lecturers %}</div>{% endif %}
{% if include.bauthors.size > 0 %}<div class="bauthors"><i class="far fa-address-book"></i> {% include_cached content_authors_string.html authors=include.bauthors %}</div>{% endif %}
</div>{% endif %}
</div>
</div></a></div>