_includes/course.html in askclass-course-theme-0.5.0 vs _includes/course.html in askclass-course-theme-0.5.1
- old
+ new
@@ -21,25 +21,27 @@
{%- for item in info.items -%}
{%- assign session = site.data.sessions[item] -%}
<div class="item">
<div class="middle-align">
<span class="material-symbols-outlined">{{ session.icon }}</span>
- <h3>{{ session.header }}</h3>
+ {%- if session.url -%}
+ <a href="/session/{{ session.url }}" title="{{ session.title }}">
+ <h3>{{ session.header }}</h3>
+ </a>
+ {%- else -%}
+ <h3>{{ session.header }}</h3>
+ {%- endif -%}
</div>
{%- if session.due -%}
<small class="due"
data-date="{{ session.due }}"
title="Due {{ session.due | date: site.acc.date_format }}">
<span class="material-symbols-outlined">alarm_on</span>
{{ session.due | date: '%b %e' }}
</small>
{%- endif -%}
- {%- if session.url -%}
- <a href="/session/{{ session.url }}" title="{{ session.title }}">{{ session.title }}</a>
- {%- else -%}
- {{ session.title }}
- {%- endif -%}
+ {{ session.title }}
{%- if session.part -%}
<small>(Part {{ session.part }})</small>
{%- endif -%}
</div>