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
- - + + + + + + + + + +
{{ page.title }}
exif
diff --git a/_src/_layouts/post.html b/_src/_layouts/post.html index b2604317..dde677dd 100644 --- a/_src/_layouts/post.html +++ b/_src/_layouts/post.html @@ -9,7 +9,16 @@ layout: base
{% if page.image %} - + + + + + + + + {% endif %} {{ content }} diff --git a/_src/_posts/2011-12-15-badged.markdown b/_src/_posts/2011-12-15-badged.markdown index 3f9d8235..f5f14507 100644 --- a/_src/_posts/2011-12-15-badged.markdown +++ b/_src/_posts/2011-12-15-badged.markdown @@ -2,7 +2,7 @@ layout: post title: Badged - iOS Style Notification Badges for WordPress -image: Badged-Teaser-kremalicious.png +image: Badged-Teaser-kremalicious@2x.png author: Matthias Kretschmann moddate: 2013-11-10 07:56:46+00:00 diff --git a/_src/index.html b/_src/index.html index cd225093..1f38110d 100644 --- a/_src/index.html +++ b/_src/index.html @@ -38,7 +38,7 @@ description: 'Blog of designer & developer Matthias Kretschmann' @@ -67,7 +67,7 @@ description: 'Blog of designer & developer Matthias Kretschmann'