diff --git a/content/tools/syntax-highlighting.md b/content/tools/syntax-highlighting.md index 7fff50b7d..efeaf345a 100644 --- a/content/tools/syntax-highlighting.md +++ b/content/tools/syntax-highlighting.md @@ -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. diff --git a/layouts/section/showcase.html b/layouts/section/showcase.html index fdc17b7d5..f28ac2bcb 100644 --- a/layouts/section/showcase.html +++ b/layouts/section/showcase.html @@ -42,6 +42,7 @@ {{end}} {{ define "addscripts" }} - - + + {{ end }} \ No newline at end of file diff --git a/static/js/vendor/blazy.min.js b/static/js/vendor/blazy.min.js new file mode 100644 index 000000000..b34c1d340 --- /dev/null +++ b/static/js/vendor/blazy.min.js @@ -0,0 +1,6 @@ +/*! + hey, [be]Lazy.js - v1.8.2 - 2016.10.25 + A fast, small and dependency free lazy load script (https://github.com/dinbror/blazy) + (c) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy +*/ + (function(q,m){"function"===typeof define&&define.amd?define(m):"object"===typeof exports?module.exports=m():q.Blazy=m()})(this,function(){function q(b){var c=b._util;c.elements=E(b.options);c.count=c.elements.length;c.destroyed&&(c.destroyed=!1,b.options.container&&l(b.options.container,function(a){n(a,"scroll",c.validateT)}),n(window,"resize",c.saveViewportOffsetT),n(window,"resize",c.validateT),n(window,"scroll",c.validateT));m(b)}function m(b){for(var c=b._util,a=0;a=c.left&&b.bottom>=c.top&&b.left<=c.right&&b.top<=c.bottom}function z(b,c,a){if(!t(b,a.successClass)&&(c||a.loadInvisible||0=window.screen.width)return u=a.src,!1});setTimeout(function(){q(a)})}});var bLazy = new Blazy(); \ No newline at end of file