_layouts/home.html in shanep-class-1.0.17 vs _layouts/home.html in shanep-class-1.0.18

- old
+ new

@@ -48,11 +48,11 @@ {% elsif tableFile.start-day == "thursday" %} {% assign curr_date = tableFile.start-date | date: "%s" | minus: one_day %} {% endif%} <div > - <h2 id="Homework">Weekly Homework</h2> + <h2 id="homework">Weekly Homework</h2> <table style="margin:auto;height: 100%; width: 100%;"> <thead> <tr> <th class="text-center">Week</th> <th>Due Date</th> @@ -76,18 +76,24 @@ <tr> <td colspan="4" 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] %} + {% else%} + {% assign page_title = page.title %} + {% endif %} + + - {% 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}} ({{page.slug}})</a>{%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%}</td> <td>{{page.points}}</td> {% assign total_points = total_points | plus: page.points %} </tr> <tr> <td rowspan= 2 class="table-lightish text-center border"> @@ -118,10 +124,10 @@ {% 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}} ({{page.slug}})</a>{%if page.layout == "lab"%} 🧪 {%elsif page.layout == "project" %} 📡 {% endif%}</td> <td>{{page.points}}</td> {% assign total_points = total_points | plus: page.points %} </tr> {%endif%} {% endif %}