Skip to content

Commit dc0a2a1

Browse files
committed
Fix modernizr url
If we are in a subdirectory it's not working anymore because the path of modernizr is all time _static/...
1 parent b5b633a commit dc0a2a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_rtd_theme/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
{%- block extrahead %} {% endblock %}
7676

7777
{# Keep modernizr in head - http://modernizr.com/docs/#installing #}
78-
<script src="_static/js/modernizr.min.js"></script>
78+
<script src="{{ pathto('_static/js/modernizr.min.js', 1) }}"></script>
7979

8080
</head>
8181

0 commit comments

Comments
 (0)