mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Change to locally hosted blazy.js
This commit is contained in:
@@ -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 }}
|
||||
Vendored
+6
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user