{% set theme_config = attribute(config.themes, config.system.pages.theme) %} {% block head %} {% block meta %} {% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ site.title|e('html') }} {% include 'partials/metadata.html.twig' %} {% endblock meta %} {% block stylesheets %} {% if config.plugins['presentation'].transition %} {% do assets.addCss('plugin://presentation/css/transition.css', {'group': 'critical'}) %} {% endif %} {% if config.plugins['presentation'].builtin_css %} {% do assets.addCss('plugin://presentation/node_modules/reveal.js/css/reveal.css', {'group': 'presentation'}) %} {% if uri.query('print-pdf') != 'true' %} {% if config.plugins['presentation'].theme != 'none' %} {% do assets.addCss('user://plugins/presentation/node_modules/reveal.js/css/theme/' ~ config.plugins['presentation'].theme ~ '.css', {'group': 'presentation'}) %} {% endif %} {% else %} {% do assets.addCss('plugin://presentation/node_modules/reveal.js/css/print/pdf.css', {'group': 'presentation'}) %} {% if uri.query('theme') == 'preset' %} {% do assets.addCss('user://plugins/presentation/node_modules/reveal.js/css/theme/' ~ config.plugins['presentation'].theme ~ '.css', {'group': 'presentation'}) %} {% else %} {% do assets.addCss('plugin://presentation/css/paper.css', {'group': 'presentation'}) %} {% endif %} {% endif %} {% endif %} {% if config.plugins['presentation'].plugin_css and uri.query('print-pdf') != 'true' %} {% do assets.addCss('plugin://presentation/css/presentation.css', {'group': 'presentation'}) %} {% endif %} {% if config.plugins['presentation'].theme_css %} {% do assets.addCss('theme://css/custom.css', {'group': 'presentation'}) %} {% endif %} {% endblock %} {% block scripts %} {# Deprecated v3.1.0 #} {# {% do assets.addInlineJs('const reveal_init = ' ~ reveal_init ~ ';', {'group': 'presentation'}) %} #} {# Deprecated v1.2.1 #} {# {% do assets.addInlineJs('const presentationBreakpoints = ' ~ presentation_breakpoints ~ ';', {'group': 'presentation'}) %} #} {% do assets.addInlineJs('const presentationAPIRoute = "/' ~ config.plugins['presentation'].api_route ~ '";', {'group': 'presentation'}) %} {% do assets.addInlineJs('const presentationAPITimeout = ' ~ config.plugins['presentation'].poll_timeout ~ ';', {'group': 'presentation'}) %} {% do assets.addInlineJs('const presentationAPIRetryLimit = ' ~ config.plugins['presentation'].poll_retry_limit ~ ';', {'group': 'presentation'}) %} {% if config.plugins['presentation'].token_auth == true %} {% do assets.addInlineJs('const presentationAPIAuth = true;', {'group': 'presentation'}) %} {% else %} {% do assets.addInlineJs('const presentationAPIAuth = false;', {'group': 'presentation'}) %} {% endif %} {% if uri.query('admin') == true %} {% do assets.addInlineJs('const presentationAuthToken = "' ~ config.plugins['presentation'].token ~ '";', {'group': 'presentation'}) %} {% endif %} {% if config.plugins['presentation'].builtin_js %} {% do assets.addJs('plugin://presentation/node_modules/reveal.js/lib/js/head.min.js', {'group': 'presentation'}) %} {% do assets.addJs('plugin://presentation/node_modules/reveal.js/js/reveal.js', {'group': 'presentation'}) %} {% endif %} {% if config.plugins['presentation'].plugin_js %} {% do assets.addJs('plugin://presentation/js/presentation.js', {'group': 'presentation'}) %} {% endif %} {# Deprecated v1.2.1 #} {# {% if config.plugins['presentation'].plugin_js and config.plugins['presentation'].textsizing %} {% do assets.addJs('plugin://presentation/js/modular-scale.package.js', {'group': 'critical'}) %} {% do assets.addJs('plugin://presentation/js/modular-scale.js', {'group': 'critical'}) %} {% endif %} #} {% endblock %} {% block assets deferred %} {{ assets.css('critical')|raw }} {{ assets.js('critical')|raw }} {{ assets.css('presentation')|raw }} {% if config.plugins['presentation'].all_assets or config.system.debugger.enabled %} {{ assets.css()|raw }} {% endif %} {% endblock %} {% endblock head %} {% if config.plugins['presentation'].transition %}
{% endif %} {% block content %}
{{ page.content|raw }}
{% endblock content %} {% block plugin_init %} {{ assets.js('presentation')|raw }} {% if config.plugins['presentation'].builtin_js %} {% if config.plugins['presentation'].transition %} {% endif %} {% endif %} {% endblock %} {% if config.plugins['presentation'].sync == 'browser' %} {% do assets.addJs('plugin://presentation/js/broadcast.js', {'group': 'bottom'}) %} {% elseif config.plugins['presentation'].sync == 'poll' %} {% do assets.addJs('plugin://presentation/node_modules/axios/dist/axios.min.js', {'group': 'presentation'}) %} {% do assets.addJs('plugin://presentation/js/poll.js', {'group': 'bottom'}) %} {% endif %} {% block assets_bottom deferred %} {{ assets.js('bottom')|raw }} {% if config.plugins['presentation'].all_assets or config.system.debugger.enabled %} {{ assets.js()|raw }} {% endif %} {% endblock %}
Reload?