Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #429 from devopsdays/improve-image-processing
Browse files Browse the repository at this point in the history
Improve image processing
  • Loading branch information
mattstratton authored Mar 23, 2017
2 parents 24656e8 + f7079a8 commit 520508e
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 5 deletions.
2 changes: 2 additions & 0 deletions exampleSite/content/events/2017-ponyville/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ aliases = ["/events/2017-ponyville/welcome"]
Pivot paradigm sticky note agile grok unicorn waterfall is so 2000 and late responsive affordances thought leader. Grok big data ship it unicorn long shadow long shadow hacker. Entrepreneur waterfall is so 2000 and late integrate user centered design innovate integrate parallax prototype pivot user story fund latte iterate driven. Human-centered design SpaceTeam pitch deck workflow responsive venture capital earned media ideate user centered design thinker-maker-doer viral. Engaging co-working paradigm prototype latte prototype parallax sticky note ship it.

# This is our thing!

<img src ="/events/2017-ponyville/want.gif">
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title = "Spike"
Twitter = "spike"
date = 2016-12-08T20:55:58-06:00
type = "speaker"
image = "spike.jpg"
image = "spike.jpeg"
+++

Food-truck SpaceTeam pivot earned media agile big data entrepreneur actionable insight iterate unicorn convergence driven moleskine. User centered design piverate physical computing disrupt moleskine co-working fund pivot. Waterfall is so 2000 and late integrate responsive big data agile piverate affordances. Agile earned media pivot viral engaging thought leader prototype workflow.
4 changes: 3 additions & 1 deletion exampleSite/data/events/2017-ponyville.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cfp_date_end: 2017-04-15
cfp_date_announce: 2017-01-01
cfp_open: "true"
cfp_link: ""
registration_date_start:
registration_date_start:
registration_date_end:
registration_open: ""
registration_closed: ""
Expand Down Expand Up @@ -79,6 +79,8 @@ ga_tracking_id: "UA-74738648-1"

sponsors_accepted: "yes"
sponsors:
- id: sample-sponsor
level: gold
- id: pivotal
level: gold
- id: sumologic
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion gulp/tasks/copy-static-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var gulp = require('gulp'),
runSequence = require('run-sequence');

gulp.task('copy-misc-files', function() {
return gulp.src(['public/sitemap.xml', 'public/**/index.xml', 'public/tags/**/*.xml', 'public/**/sharing.jpg', 'public/favicon*', 'public/apple-icon*', 'public/android-icon*', 'public/ms-icon*', 'public/manifest.json', 'public/browserconfig.xml', 'public/**/*.pdf','public/_redirects', 'public/robots.txt'])
return gulp.src(['public/sitemap.xml', 'public/**/index.xml', 'public/tags/**/*.xml', 'public/**/sharing.jpg', 'public/favicon*', 'public/apple-icon*', 'public/android-icon*', 'public/ms-icon*', 'public/manifest.json', 'public/browserconfig.xml', 'public/**/*.pdf', 'public/**/*.gif', 'public/_redirects', 'public/robots.txt'])
.pipe(gulp.dest('dist'));
});

Expand Down
15 changes: 14 additions & 1 deletion gulp/tasks/responsive-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ gulp.task('responsive-sponsor-images', function() {


gulp.task('responsive-images-remaining', function() {
return gulp.src(['public/**/*.png', 'public/**/*.jpg',
return gulp.src(['public/**/*.png', 'public/**/*.jpg','public/**/*.jpeg',
'!public/favicon*', '!public/apple-icon*', '!public/android-icon*', '!public/ms-icon*', '!public/**/sharing.jpg', '!**/logo-square.*', '!public/img/sponsor/*.*', '!public/**/organizers/*.jpg',
])
.pipe(responsive({
Expand All @@ -139,6 +139,19 @@ gulp.task('responsive-images-remaining', function() {
suffix: '@3x'
}
}],
'**/*.jpeg': [{
width: '100%'
}, {
width: '100%',
rename: {
suffix: '@2x'
}
}, {
width: '100%',
rename: {
suffix: '@3x'
}
}],
'**/*.jpg': [{
width: '100%'
}, {
Expand Down
2 changes: 1 addition & 1 deletion gulp/tasks/revision.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var gulp = require('gulp'),


gulp.task('revision', function(){
return gulp.src(['staging/**/*.+(png|jpg|gif|svg|js|css)','!staging/favicon*', '!staging/apple-icon*', '!staging/android-icon*', '!staging/ms-icon*', '!staging/**/sharing.jpg'])
return gulp.src(['staging/**/*.+(png|jpg|jpeg|gif|svg|js|css)','!staging/favicon*', '!staging/apple-icon*', '!staging/android-icon*', '!staging/ms-icon*', '!staging/**/sharing.jpg'])
.pipe(rev())
.pipe(gulp.dest('dist'))
.pipe(rev.manifest())
Expand Down

0 comments on commit 520508e

Please sign in to comment.