Change to locally hosted blazy.js

This commit is contained in:
Ryan Watters 2017-03-12 23:32:36 -05:00
parent 3c50e8dd9a
commit 44c97f914e
3 changed files with 10 additions and 3 deletions

View File

@ -121,7 +121,7 @@ It is also possible to add syntax highlighting with GitHub flavored code fences.
* The languages available for highlighting depend on your Pygments installation. * The languages available for highlighting depend on your Pygments installation.
{{% /note %}} {{% /note %}}
## Client-side Syntax Highlighting ## Client-side
Alternatively, code highlighting can be applied to your code blocks in client-side JavaScript. Alternatively, code highlighting can be applied to your code blocks in client-side JavaScript.

View File

@ -42,6 +42,7 @@
{{end}} {{end}}
{{ define "addscripts" }} {{ define "addscripts" }}
<script type="text/javascript" src="https://cdn.jsdelivr.net/blazy/1.8.2/blazy.min.js"></script> <script src="{{ "js/vendor/blazy.min.js" | relURL}}" async defer></script>
<script>var bLazy = new Blazy();</script> <!-- <script type="text/javascript" src="https://cdn.jsdelivr.net/blazy/1.8.2/blazy.min.js"></script>
<script>var bLazy = new Blazy();</script> -->
{{ end }} {{ end }}

6
static/js/vendor/blazy.min.js vendored Normal file

File diff suppressed because one or more lines are too long