DevTips / Artists-Theme

🌄 A free Jekyll Theme developed by the DevTips Community
http://devtips.github.io/Artists-Theme
The Unlicense
592 stars 498 forks source link

Layout changes on live site as compared to the local version #93

Closed crikeli closed 7 years ago

crikeli commented 7 years ago

Hey all,

I have no idea why this is happening, but it is :( . I am able to render the "work" section on the website perfectly while I am testing locally: screen shot 2016-12-12 at 12 32 54 am screen shot 2016-12-12 at 12 33 07 am

However, after I publish the site, the layout gets completely messed up screen shot 2016-12-12 at 12 33 26 am screen shot 2016-12-12 at 12 33 34 am


Has anyone experienced this? If so, any solutions?

Thanks alot for reading and for the help in advance!

P.S The code resides here : https://github.com/crikeli/crikeli.github.io

katalin2003 commented 7 years ago

Did you use the developer tools? Looks like missing HTML.

On Dec 12, 2016 09:37, "Kelin Christi" notifications@github.com wrote:

Hey all,

I have no idea why this is happening, but it is :( . I am able to render the "work" section on the website perfectly while I am testing locally: [image: screen shot 2016-12-12 at 12 32 54 am] https://cloud.githubusercontent.com/assets/8507995/21092688/c69a72e0-c002-11e6-90a9-f3902885d800.png [image: screen shot 2016-12-12 at 12 33 07 am] https://cloud.githubusercontent.com/assets/8507995/21092690/ca70afc4-c002-11e6-9638-65055e44c575.png

However, after I publish the site, the layout gets completely messed up [image: screen shot 2016-12-12 at 12 33 26 am] https://cloud.githubusercontent.com/assets/8507995/21092711/eb127096-c002-11e6-8a3f-6c7ba295c7d4.png [image: screen shot 2016-12-12 at 12 33 34 am] https://cloud.githubusercontent.com/assets/8507995/21092714/ee0d58d8-c002-11e6-92e3-c7ead3f033b8.png

Has anyone experienced this? If so, any solutions?

Thanks alot for reading and for the help in advance!

P.S The code resides here : https://github.com/crikeli/crikeli.github.io

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DevTips/Artists-Theme/issues/93, or mute the thread https://github.com/notifications/unsubscribe-auth/AEeMAiGAl8dGCZjW7pP5Y8nHUhAOYypgks5rHQfjgaJpZM4LKTAQ .

crikeli commented 7 years ago

Thanks for your reply Katalin!

I did use them, but how can it be missing html if it renders correctly locally, but not when published?

katalin2003 commented 7 years ago

I'm sorry. What I meant is to inspect the published site for any missing HTML or CSS, by comparing with your local version.

We can narrow down from there.

On Dec 12, 2016 11:42, "Kelin Christi" notifications@github.com wrote:

Thanks for your reply Katalin!

I did use them, but how can it be missing html if it renders correctly locally, but not when published?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/DevTips/Artists-Theme/issues/93#issuecomment-266396359, or mute the thread https://github.com/notifications/unsubscribe-auth/AEeMAvrB_LM8iNRoWaiUh0mfRaXKS58Zks5rHSUQgaJpZM4LKTAQ .

crikeli commented 7 years ago

hmmm, I don't see how the code would be different, but I will double check. Thanks though :)

crikeli commented 7 years ago

Apparently, when I see the debugging console, a new file is generated called *style.css. It does not exist anywhere in my repository, but it spawns for some reason.

Here is the image of the file. screen shot 2016-12-12 at 3 56 40 am

Here is a pic of the file when I delete its contents. (the layout gets fixed) screen shot 2016-12-12 at 3 57 22 am


Any ideas of how I can get rid of a non-existent file? :/

Thanks again!

TBT-techno commented 7 years ago

+1 I'm experiencing the same bug on the live (github hosted) versus local version of my site as well.

crikeli commented 7 years ago

Any luck finding a solution? @TBT-techno

BuckyMaler commented 7 years ago

@crikeli @TBT-techno I experienced the same issue. The ajax request for the work content was wrapping the requested HTML in non-specified HTML. By that I mean, there was a head and body, when only a raw snippet was being requested. Unfortunately, I can't shed much light on why the issue was occurring, but my solution was to push the production files (i.e. _site/) to the master branch. I of course would have preferred to have the development on master, and production on gh-pages, but for the USERNAME.github.io repo I believe GitHub displays the contents from the master branch. Again, I wish I could shed more light on the issue. I hope that helps.

crikeli commented 7 years ago

@BuckyMaler You are right, that is exactly what happened. It still does not make sense what caused the error, but your solution worked! Thanks :)