GH-pages build and local jekyll build have different display formats for posts


#1

I have just saved my ipython notebook to markdown and set as a post in _post/. When I run jekyll serve locally I get the expected format. When I run it on GH-pages, I get a different format. Here are the two versions I’m talking about:

Remaining parts of the website are fine – it is just the posts themselves. This is the first post in a long time that I have updated (I simply updated my Plotly graph at the bottom here). Now all the posts have the same layout after I made a small correction and pushed it.

Any help greatly appreciated. Thanks.


#2

your css is not loading. Open up chromes inspector and look at all the errors in the console.

Adding a / in front of the css urls may be all you need but not sure.

As for the rest of the site being fine, all the top links on that page were 404 for me (they are under /blog/ for some reason).


#3

Here is a bulletproof syntax used in Jekyll themes to properly call an asset, e.g. a CSS file:

<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">