From 5a78ca28ec2adc14913c6170a74068526c72ce38 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 19 Aug 2017 00:38:46 +0100 Subject: [PATCH] Split scripts --- gulpfile.js | 8 ++++++-- source/_layouts/default.html.twig | 2 +- source/_layouts/post.html.twig | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index b44a10bb..388a446d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -68,12 +68,16 @@ gulp.task('styles', function () { }); gulp.task('scripts', function () { + app.js([ + 'node_modules/jquery/dist/jquery.js', + config.js.sourceDir + '/**/*.js' + ], 'main.js') + app.js([ 'node_modules/jquery/dist/jquery.js', 'node_modules/prismjs/prism.js', 'node_modules/prismjs/components/prism-{apacheconf,bsash,css,diff,ini,json,nginx,php,sass,scss,sql,less,twig,xml,yaml}.js', - config.js.sourceDir + '/**/*.js' - ], 'site.js') + ], 'post.js') }); gulp.task('watch', ['default'], function () { diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index cb3a0167..0adc3bbe 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -60,7 +60,7 @@ - + {% if site.google_analytics_tracking_id %} diff --git a/source/_layouts/post.html.twig b/source/_layouts/post.html.twig index 146ce0e8..08413d9d 100644 --- a/source/_layouts/post.html.twig +++ b/source/_layouts/post.html.twig @@ -14,3 +14,7 @@ {% block stylesheets %} {% endblock %} + +{% block scripts %} + +{% endblock %}