From e897b891258caf719136ae382ec5c9145d5ddcb2 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 18 Jul 2023 10:59:32 +0100 Subject: [PATCH] Added support for MkDocs 1.5 Co-authored-by: oprypin <371383+oprypin@users.noreply.github.com> --- material/base.html | 8 ++++---- src/base.html | 10 ++++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/material/base.html b/material/base.html index 26ed8f866ae..b9193344962 100644 --- a/material/base.html +++ b/material/base.html @@ -241,11 +241,11 @@ {% endblock %} {% block scripts %} - {% for path in config.extra_javascript %} - {% if path.endswith(".mjs") %} - + {% for script in config.extra_javascript %} + {% if script.path %} + {{ script | script_tag }} {% else %} - + {% endif %} {% endfor %} {% endblock %} diff --git a/src/base.html b/src/base.html index eb8205a5b61..850821a3cab 100644 --- a/src/base.html +++ b/src/base.html @@ -419,11 +419,13 @@ - {% for path in config.extra_javascript %} - {% if path.endswith(".mjs") %} - + {% for script in config.extra_javascript %} + + + {% if script.path %} + {{ script | script_tag }} {% else %} - + {% endif %} {% endfor %} {% endblock %}