diff --git a/_data/sessions.yml b/_data/sessions.yml index 70ca91a..f7111ce 100644 --- a/_data/sessions.yml +++ b/_data/sessions.yml @@ -14,6 +14,9 @@ session-02: header: 'Session 2' sequence: 2 url: 'session-02' + images: + - desc: AskClass Logo + src: /assets/logo.svg assignment-01: segment: 'week-01' diff --git a/_includes/session/images.html b/_includes/session/images.html new file mode 100644 index 0000000..da76ed2 --- /dev/null +++ b/_includes/session/images.html @@ -0,0 +1,6 @@ +{% for i in include.images %} + {{ i.desc }} + {% assign _size = include.images | size %} + {% if forloop.index != _size %}
{% endif %} +{% endfor %} + diff --git a/_layouts/session.html b/_layouts/session.html index 03eeb93..d77d406 100644 --- a/_layouts/session.html +++ b/_layouts/session.html @@ -11,6 +11,8 @@
+ {% include session/images.html images=session_data.images %} + {% include session/points.html %} {% include session/videos.html videos=session_data.videos %} diff --git a/content/_session/parts/theme_intro.md b/content/_session/parts/theme_intro.md index cffc780..2cf290f 100644 --- a/content/_session/parts/theme_intro.md +++ b/content/_session/parts/theme_intro.md @@ -82,9 +82,11 @@ Key | Description `header` | Header for the session usually part of a series (e.g. `Session 1`) `sequence` | An optional sequence number (e.g. `3`) `url` | Link to the content of this session +`images` | Array of `src` & `desc` for main image(s) to display `videos` | Arrray of YouTube video IDs to render at the top of the session `due` | A date that this assignment or quiz is due (e.g. `2022-10-10`) `points` | Optional value of this assignment (e.g. `30`) +`part` | OPtional partition identifier for current lession (e.g. `1`) Folder ### `content/_segment`