rampatra / photography

A free online portfolio website to showcase your photos.
http://photography.rampatra.com
GNU General Public License v3.0
958 stars 1k forks source link

Not seeing images locally #3

Closed geografa closed 7 years ago

geografa commented 7 years ago

I'm running jekyll serve --watch but still unable to see thumbs and images locally. The built site shows empty images and links. I've run gulp and everything seems to work:

[15:15:54] Using gulpfile ~/htdocs/photography/gulpfile.js
[15:15:54] Starting 'resize'...
[15:15:54] Finished 'resize' after 17 ms
[15:15:54] Starting 'del'...
[15:15:54] Finished 'del' after 5.31 ms
[15:15:54] Starting 'default'...
[15:15:54] Finished 'default' after 33 μs

The site and images load on the live site but I can't get it to run locally. I'm running jekyll 3.1.6

rampatra commented 7 years ago

Hi @geografa, can you please push your code changes to your github repo so that I can look at the issue?

geografa commented 7 years ago

@ramswaroop thanks for looking :) Changes are in the gh-pages branch: https://github.com/geografa/photography/tree/gh-pages

rampatra commented 7 years ago

Hi, I found the issue. Your image aDSC_0938.jpg is there in fulls directory but not in thumbs. Please put a (smaller version of the image for faster loading of the) image in thumbs directory and your image will start appearing.

geografa commented 7 years ago

@ramswaroop I thought gulp did this. Should this be a manual process? Also, it's hard to say if this is a jekyll issue or a gulp issue. The fact that it renders correctly on the site leads me to believe these might be two separate issues

  1. gulp is not generating the images
  2. jekyll is not rendering the images locally.

Which version of jekyll are you using at the moment?

geografa commented 7 years ago

rebuilt with latest Jekyll and bundle installed again. Everything looks good 👍 . Thanks for making a great template!

rampatra commented 7 years ago

@geografa Yes, $ gulp command compresses all the images in /images directory to /fulls and /thumbs directories automatically. It should work okay as it works at my end and no one else has raised any issue yet.

I think there is no issue in jekyll as the images weren't there in the directory itself so jekyll couldn't display them. Just make sure after running $ gulp you have the images in the respective directories.