_layouts/home.html in shanep-class-1.0.18 vs _layouts/home.html in shanep-class-1.0.19
- old
+ new
@@ -56,10 +56,11 @@
<tr>
<th class="text-center">Week</th>
<th>Due Date</th>
<th>Homework</th>
<th>Points</th>
+ <th>Lesson</th>
</tr>
</thead>
<tbody>
{% assign curr_week = 1 %}
@@ -72,11 +73,11 @@
{% if page.path contains "lesson" %}
{% assign loop_counter = loop_counter | plus: 1 %}
{% if curr_module != page.tag %}
<!--Module header-->
<tr>
- <td colspan="4" class="text-center table-darkish">{{page.tag | capitalize }}</td>
+ <td colspan="5" class="text-center table-darkish">{{page.tag | capitalize }}</td>
</tr>
{% assign curr_module = page.tag %}
{% endif%}
{% if page.layout == "reading-zybooks" %}
{% assign page_title = site.data.semester-info.reading[page.slug] %}
@@ -89,13 +90,14 @@
{% if curr_week == tableFile.break %}
<!--Add in the break week, we need to grab the next lesson before inserting new week-->
<tr>
{% assign curr_date = curr_date | date: "%s" | plus: two_days %}
<td>{{curr_date | date: "%m/%d - %a"}}</td>
- <td><a href="{{site.url}}{{page.url}}">{{page_title}} ({{page.slug}})</a>{%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%}</td>
+ <td><a href="{{site.url}}{{page.url}}">{{page_title}}</a>{%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%}</td>
<td>{{page.points}}</td>
{% assign total_points = total_points | plus: page.points %}
+ <td>{{page.slug}}</td>
</tr>
<tr>
<td rowspan= 2 class="table-lightish text-center border">
{% assign curr_date = curr_date | date: "%s" | plus: three_days %}
{{curr_week}}
@@ -124,20 +126,21 @@
{% assign curr_week = curr_week | plus: 1 %}
</td>
{% endif %}
{% assign curr_date = curr_date | date: "%s" | plus: two_days %}
<td>{{curr_date | date: "%m/%d - %a"}}</td>
- <td><a href="{{site.url}}{{page.url}}">{{page_title}} ({{page.slug}})</a>{%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%}</td>
+ <td><a href="{{site.url}}{{page.url}}">{{page_title}}</a>{%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%}</td>
<td>{{page.points}}</td>
{% assign total_points = total_points | plus: page.points %}
+ <td>{{page.slug}}</td>
</tr>
{%endif%}
{% endif %}
{% endfor%}
</tbody>
<tfoot>
<tr>
- <td colspan="3" class="table-lightish">Total Points:</td>
+ <td colspan="4" class="table-lightish">Total Points:</td>
<td class="table-lightish">{{total_points}}</td>
</tr>
</tfoot>
</table>