diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-16 03:31:46 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-05-16 03:31:46 +0300 |
commit | 10c0a594657ee6f5df5810f6ea35408595208adb (patch) | |
tree | 3ccb117151ef6b3f3e313ef785b314508391230d /_includes/bootstrap_js.html | |
parent | code style (diff) | |
download | egor-tensin.github.io-10c0a594657ee6f5df5810f6ea35408595208adb.tar.gz egor-tensin.github.io-10c0a594657ee6f5df5810f6ea35408595208adb.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 '')
-rw-r--r-- | _includes/bootstrap_js.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_includes/bootstrap_js.html b/_includes/bootstrap_js.html new file mode 100644 index 0000000..e724257 --- /dev/null +++ b/_includes/bootstrap_js.html @@ -0,0 +1,5 @@ +{% if site.minified_externals %} + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/js/bootstrap.min.js"></script> +{% else %} + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/js/bootstrap.js"></script> +{% endif %} |