Skip to content

Commit a94aaaf

Browse files
Put the requisite resources in the <header>
We use the stock `initHighlightingOnLoad` method in lieu of better techniques like WebWorkers for maximum compatibility. We don't need to do a ton of highlighting on the blog anyways.
1 parent 204bd8c commit a94aaaf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/headers.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
<link rel="stylesheet" href="/styles/vendor.css"/>
2828
<link rel="stylesheet" href="/styles/fonts.css"/>
2929
<link rel="stylesheet" href="/styles/app.css"/>
30+
<link rel="stylesheet" href="/styles/highlight.css"/>
31+
32+
<!-- scripts -->
33+
<script src="/scripts/highlight.js"></script>
34+
<script>hljs.initHighlightingOnLoad();</script>
3035

3136
<!-- favicon -->
3237
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">

0 commit comments

Comments
 (0)