mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-18 20:54:38 -04:00
Change to locally hosted blazy.js
This commit is contained in:
parent
3c50e8dd9a
commit
44c97f914e
@ -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.
|
||||
{{% /note %}}
|
||||
|
||||
## Client-side Syntax Highlighting
|
||||
## Client-side
|
||||
|
||||
Alternatively, code highlighting can be applied to your code blocks in client-side JavaScript.
|
||||
|
||||
|
@ -42,6 +42,7 @@
|
||||
{{end}}
|
||||
|
||||
{{ define "addscripts" }}
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/blazy/1.8.2/blazy.min.js"></script>
|
||||
<script>var bLazy = new Blazy();</script>
|
||||
<script src="{{ "js/vendor/blazy.min.js" | relURL}}" async defer></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 }}
|
6
static/js/vendor/blazy.min.js
vendored
Normal file
6
static/js/vendor/blazy.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user