Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image thumbnails #22

Closed
diomed opened this issue May 5, 2018 · 2 comments
Closed

image thumbnails #22

diomed opened this issue May 5, 2018 · 2 comments

Comments

@diomed
Copy link

diomed commented May 5, 2018

hello

I'm using your theme and got a question about could you improve something;
I have image for my blog post and it's displayed ok when I open it.
However, when post is listed in cards it requires thumbnail /img/posts/edison-light-bulbs_925x_thumb.jpg
which I should make myself?

Isn't there some kind of way for jekyll to autogenerate thumbnails, and could you maybe implement it into theme, so me and other users of this theme don't have to resize images to thumbnails?

Thanks for theme, it's pretty swell! 👍

@janczizikow
Copy link
Owner

Hey @diomed, you can put all the images in the _img/posts/ folder and run gulp img from the command line. If you used ruby gem to install the theme, then you will have to make a gulpfile.js (and install all the packages from npm). You can take a look at the task for images from gulpfile from this repo. Not sure if jekyll has a way to do it, so I used gulp. Let me know if that helps!

@bermetj
Copy link

bermetj commented Jun 23, 2018

@diomed, make sure your task for images is pointing to the right directory. Once I updated it to point to the right folder it worked.

gulp.task('img', function() {
  return gulp.src('assets/img/posts/*.{png,jpg}')
    .pipe($.responsive({
      // For all the images in the folder
      '*': [{
        width: 230,
        rename: {suffix: '_placehold'},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants