diff --git a/Gruntfile.js b/Gruntfile.js index c0bcf668..58376a12 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -122,6 +122,16 @@ module.exports = function(grunt){ } ] }, + media: { + files: [ + { + expand: true, + cwd: '<%= config.site %>/media/', + src: ['**/*.{png,jpg,jpeg,gif}'], + dest: '<%= config.site %>/media/' + } + ] + }, touchicons: { files: [ { @@ -166,7 +176,7 @@ module.exports = function(grunt){ '<%= config.src %>/_layouts/**', '<%= config.src %>/_posts/**' ], - tasks: ['jekyll', 'less'] + tasks: ['jekyll', 'less', 'uglify'] }, }, @@ -219,6 +229,11 @@ module.exports = function(grunt){ 'imagemin' ]); + // Imagemin only task + grunt.registerTask('imagemin', [ + 'imagemin' + ]); + // Production build grunt.registerTask('build', [ 'clean', diff --git a/_src/_includes/head.html b/_src/_includes/head.html index e5e85818..6926ccaa 100644 --- a/_src/_includes/head.html +++ b/_src/_includes/head.html @@ -22,7 +22,7 @@ - + @@ -33,7 +33,7 @@ - + diff --git a/_src/_layouts/image.html b/_src/_layouts/image.html index fdbbae68..1f715281 100644 --- a/_src/_layouts/image.html +++ b/_src/_layouts/image.html @@ -6,8 +6,18 @@ layout: base