Skip to content

Commit 0ad9ae4

Browse files
committed
Don't apply highlight.js to python pages.
Jupyter+nbconvert take care of this, and highlight.js can mess up code blocks specified without syntax highlighting.
1 parent 6455aee commit 0ad9ae4

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

_includes/_new/_page-components/_footer-main.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,11 @@ <h6 class="--footer-heading">Connect</h6>&#x9;&#x9;&#x9;
197197
<!-- Image Hover Script -->
198198
<script src="{{site.staticurl}}/javascripts/imghover.js"></script>
199199

200+
{% if page.language != "python" %}
200201
<!-- code highlighting -->
201202
<script src="{{site.staticurl}}/javascripts/codehighlight/highlight.pack.js"></script>
202203
<script>hljs.initHighlightingOnLoad();</script>
204+
{% endif %}
203205

204206
<!-- Google Analytics -->
205207
<script>

_includes/footer.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ <h6 class="footer-heading">Connect</h6>
7070
<script type='text/javascript' src='//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML%2CSafe.js&#038;ver=4.1'></script>
7171
{% endif %}
7272

73+
{% if page.language != "python" %}
7374
<!-- code highlighting -->
7475
<script src="{{site.staticurl}}/javascripts/codehighlight/highlight.pack.js"></script>
7576
<script>hljs.initHighlightingOnLoad();</script>
77+
{% endif %}
7678

7779
<!-- Google Analytics -->
7880
<script>

_includes/head.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77

88

9+
{% if page.language != "python" %}
10+
<!-- code highlighting -->
911
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js"></script>
1012
<script>hljs.initHighlightingOnLoad();</script>
13+
{% endif %}
1114

1215
<!--
1316
//// Stylesheets

0 commit comments

Comments
 (0)