From 6248ffb2a64ea9e0a5541f1ec8138c5a37ed4c28 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 11 Feb 2021 01:24:11 +0100 Subject: [PATCH] Server simplebar ourselve, don't depend on unpkg.com .. --- themes/yunohost-docs/templates/partials/base.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/yunohost-docs/templates/partials/base.html.twig b/themes/yunohost-docs/templates/partials/base.html.twig index 6e29f7d8..b4989e8c 100644 --- a/themes/yunohost-docs/templates/partials/base.html.twig +++ b/themes/yunohost-docs/templates/partials/base.html.twig @@ -26,6 +26,7 @@ {% block javascripts %} {% do assets.addJs('jquery', 101) %} + {% do assets.addJs('theme://js/simplebar.min.js', { group:'bottom' }) %} {% do assets.addJs('theme://js/learn4.js', { group:'bottom' }) %} {% do assets.addJs('theme://js/darkMode.js', { group:'bottom' }) %} {% endblock %} @@ -74,7 +75,6 @@ {% block bottom %} - {{ assets.js('bottom')|raw }} {% endblock %}