{% extends "base.html" %} {% block site_meta %} {{ super() }} {% if page.meta and page.meta.print_title %} {% endif %} {% endblock %} {% block styles %} {{ super() }} {% endblock %} {% block announce %}{% endblock %} {% block header %} {#- bundle.js requires a [data-md-component=header] element to exist (mountHeader); keep a real (but visually suppressed)
around our own floating toolbar. -#} {#- Own toggle instead of Material's `__toc`: that one also drives the TOC nested in the primary nav on narrow screens. Placed here so it's a sibling of both the toolbar and .md-container, like `__drawer`. -#} {% if page.toc %} {% endif %}
{% if nav %} {% endif %} {% if page.toc %} {% endif %} {% if config.theme.palette %} {% if not config.theme.palette is mapping %} {% include "partials/palette.html" %} {% endif %} {% endif %} {% include ".icons/fontawesome/regular/file-pdf.svg" %}
{% if config.theme.palette %} {% if not config.theme.palette is mapping %} {% include "partials/javascripts/palette.html" %} {% endif %} {% endif %} {% endblock %} {% block hero %}{% endblock %} {#- Both sidebars are forced to always behave as off-canvas drawers in slides.css, since the fullscreen layout has no room for an inline sidebar column at any width. -#} {% block site_nav %} {% if nav %}
{% include "partials/nav.html" %}
{% endif %} {#- The page TOC, one entry per slide heading. Not partials/toc.html: its data-md-component="toc" mounts Material's scroll-spy, which tracks headings by page scroll position — meaningless here, reveal.js doesn't scroll. Links are handled by the script below instead. -#} {% if page.toc %} {% set toc = page.toc %} {% set first = toc | first %} {% if first and first.level == 1 %} {% set toc = first.children %} {% endif %}
{% endif %} {% endblock %} {% block container %}
{#- Material scopes nearly all of its typography CSS (icons, admonitions, tables, tabs...) under .md-typeset; without it on an ancestor here, that CSS silently doesn't apply to slide content. -#}
{% for slide in page.slides %} {#- A CSS class, not a :first-child selector, marks the title slide: reveal's print-pdf layout moves every section into a new .pdf-page wrapper div, so it stops being .slides' direct child there — a structural selector would silently lose the hero styling in exports, a class survives the move. -#} {% set title_class = ' class="slide-title"' if loop.first else '' %} {% if slide | length > 1 %} {% for html in slide %}
{{ html }}
{% endfor %} {% else %} {{ slide[0] }} {% endif %} {% endfor %}
{% endblock %} {% block footer %} {% endblock %} {% block scripts %} {{ super() }} {% block reveal_script %} {% endblock %} {% endblock %}