From efd31fbb6074f1f1055f85cbe7eb8c740f1de416 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 26 Oct 2020 21:03:05 -0400 Subject: [PATCH] fix up placement of polyfill loader layout.html and load it only for internet explorer --- .../_themes/lammps_theme/layout.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/utils/sphinx-config/_themes/lammps_theme/layout.html b/doc/utils/sphinx-config/_themes/lammps_theme/layout.html index 8e0d235d55..98d25ebca1 100644 --- a/doc/utils/sphinx-config/_themes/lammps_theme/layout.html +++ b/doc/utils/sphinx-config/_themes/lammps_theme/layout.html @@ -48,6 +48,15 @@ + + {# Keep modernizr in head - http://modernizr.com/docs/#installing #} + + + {# for improved browser compatibility #} + + {%- if not embedded %} {# XXX Sphinx 1.8.0 made this an external js-file, quick fix until we refactor the template to inherert more blocks directly from sphinx #} {% if sphinx_version >= "1.8.0" %} @@ -103,12 +112,6 @@ {%- endif %} {%- endblock %} {%- block extrahead %} {% endblock %} - - {# Keep modernizr in head - http://modernizr.com/docs/#installing #} - - - {# for improved browser compatibility #} -