_layouts/session.html in askclass-course-theme-0.11.1 vs _layouts/session.html in askclass-course-theme-0.12.0

- old
+ new

@@ -1,28 +1,32 @@ -{% assign session_id = page.id | split: '/' | last %} -{% assign session_data = site.data.sessions[session_id] %} -{% assign segment_data = site.data.syllabus[session_data.segment] %} +{%- assign session_id = page.id | split: '/' | last -%} +{%- assign session_data = site.data.sessions[session_id] -%} +{%- assign segment_data = site.data.syllabus[session_data.segment] -%} +{%- if session_data.width != 'max' -%} + {%- assign constraint = 'max-width' -%} +{%- endif -%} <!doctype html> <html lang="en"> {% include header.html %} <body> {% include logo_static.html size=50 height=50 %} {% include session/header.html %} <section class="center-align spacer content"> - <article> - {% include session/images.html images=session_data.images %} - - {% include session/points.html %} - - {% include session/videos.html videos=session_data.videos %} + <article class="{{ constraint }}"> + {%- include session/images.html images=session_data.images -%} + {%- include session/points.html -%} + {%- include session/videos.html videos=session_data.videos -%} {{ content }} + {%- if page.dialogue -%} + {%- include session/conversation.html data=page.dialogue-%} + {%- endif -%} </article> </section> - {% include session/paginator.html %} - {% include session/content_revealer.html %} - {% include footer.html %} - {% include foot/mathjax.html -%} + {%- include session/paginator.html -%} + {%- include session/content_revealer.html -%} + {%- include footer.html -%} + {%- include foot/mathjax.html -%} </body> </html>