File tree Expand file tree Collapse file tree 3 files changed +23
-11
lines changed
Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ session-01:
22 segment : ' week-01'
33 title : ' Syllabus & Course Overview'
44 icon : web_stories
5- header : ' Session 1'
65 sequence : 1
76 url : ' session-01'
87 videos : [ 'NoWbwykidu0' ]
@@ -11,7 +10,6 @@ session-02:
1110 segment : ' week-01'
1211 title : " AskClass Course Theme Intro"
1312 icon : web_stories
14- header : ' Session 2'
1513 sequence : 2
1614 url : ' session-02'
1715 images :
@@ -33,7 +31,6 @@ session-03:
3331 segment : ' week-02'
3432 title : " Formatting Content"
3533 icon : web_stories
36- header : ' Session 3'
3734 sequence : 3
3835 url : ' session-03'
3936
Original file line number Diff line number Diff line change @@ -25,17 +25,26 @@ <h4>{{ info.desc }}</h4>
2525 {%- endif -%}
2626 {%- for item in info.items -%}
2727 {%- assign session = site.data.sessions[item] -%}
28+ {%- if session.header %}
29+ {%- assign header = session.header %}
30+ {%- elsif session.sequence %}
31+ {%- assign header = course.session_tag | append: " " | append: session.sequence %}
32+ {%- else %}
33+ {%- assign header = nul %}
34+ {%- endif %}
2835 < div class ="item ">
36+ {%- if header %}
2937 < div class ="middle-align ">
30- < span class ="{{ symbols }} "> {{ session.icon }}</ span >
38+ < span class ="card-color {{ symbols }} "> {{ session.icon }}</ span >
3139 {%- if session.url -%}
3240 < a href ="/session/{{ session.url }} " title ="{{ session.title }} ">
33- < h3 > {{ session. header }}</ h3 >
41+ < h3 class =" card-color " > {{ header }}</ h3 >
3442 </ a >
3543 {%- else -%}
36- < h3 > {{ session. header }}</ h3 >
44+ < h3 class =" card-color " > {{ header }}</ h3 >
3745 {%- endif -%}
3846 </ div >
47+ {%- endif %}
3948 {%- if session.due -%}
4049 < small class ="due "
4150 data-date ="{{ session.due }} "
@@ -45,10 +54,16 @@ <h3>{{ session.header }}</h3>
4554 </ small >
4655 {%- endif -%}
4756
48- {{ session.title }}
57+ {%- if header == nul && session.url %}
58+ < a class ="card-color " href ="/session/{{ session.url }} " title ="{{ session.title }} ">
59+ {{ session.title }}
60+ </ a >
61+ {%- else %}
62+ {{ session.title }}
63+ {%- endif %}
4964
5065 {%- if session.part -%}
51- < small > ({{ session.part }})</ small >
66+ < small class =" card-color " > ({{ session.part }})</ small >
5267 {%- endif -%}
5368 </ div >
5469 {%- endfor -%}
Original file line number Diff line number Diff line change 2929
3030 < div class ="body ">
3131 {%- if session.url -%}
32- < h3 > < a href ="/session/{{ session.url }} "> {{ session.title }}</ a > </ h3 >
32+ < h3 > < a class =" card-color " href ="/session/{{ session.url }} "> {{ session.title }}</ a > </ h3 >
3333 {%- else -%}
34- < h3 > {{ session.title }}</ h3 >
34+ < h3 class =" card-color " > {{ session.title }}</ h3 >
3535 {%- endif -%}
3636
3737 {%- if session.part -%}
38- < div class ="item ">
38+ < div class ="card-color item ">
3939 {{ session.part }}
4040 </ div >
4141 {%- endif -%}
You can’t perform that action at this time.
0 commit comments