aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/jquery.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-05-16 17:39:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-05-16 17:39:37 +0300
commitcfc682283246a2f7167682a82b0ac62365cbe7fb (patch)
treed0e9c829f4a4cb02a0278bc6e49910d896af9c12 /_includes/jquery.html
parentcode style (diff)
downloadblog-cfc682283246a2f7167682a82b0ac62365cbe7fb.tar.gz
blog-cfc682283246a2f7167682a82b0ac62365cbe7fb.zip
more flexible prerequisite management
* Move external <link>s and <script>s into separate includes. * Opt for minified versions of external CSS stylesheets and JavaScript files by default, allowing to use the properly formatted versions during development using _config_dev.yml. * External components versions are now in the config file.
Diffstat (limited to '_includes/jquery.html')
-rw-r--r--_includes/jquery.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/_includes/jquery.html b/_includes/jquery.html
new file mode 100644
index 0000000..aa6d2fd
--- /dev/null
+++ b/_includes/jquery.html
@@ -0,0 +1,5 @@
+{% if site.minified_externals %}
+ <script src="https://code.jquery.com/jquery-{{ site.jquery_version }}.min.js"></script>
+{% else %}
+ <script src="https://code.jquery.com/jquery-{{ site.jquery_version }}.js"></script>
+{% endif %}