Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Creating a Project Pages Site

Joe Clarken
PLUS
Joe Clarken
Courses Plus Student 34 Points

Different path

I tried to upload my project to GitHub pages, however, the path is probably different from the one I use in Atom and preview it on the Google Chrome browser.

index.html is fine, but other pages don't show the pictures.

Is anyone facing the same issue or all of you are using VS code?

There is always the option to change the path in the repository, but when I would make additional changes in the Atom text editor again I would have to change the directions every time

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Data Analysis Techdegree Graduate 45,997 Points

Hey there Joe Clarken ! :wave:

I would check out this StackOverflow post as I believe it helped me with the same issue in the past.

Be aware that the paths are case-sensitive so make sure that everything is spelled exact.

Sometimes having a leading / in the path like /images/photo.jpg can cause issues as well. I would try first without the leading / or maybe give a ./ a shot if that doesn't work.

Let me know if you get it figured out or not! :smiley:

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Data Analysis Techdegree Graduate 45,997 Points

Also, it shouldn't matter what IDE you're using, but be aware that Atom has been 'sunsetted' or 'discontinued'. So it still works but will no longer receive any updates etc.

Sunsetting Atom Blog