barryclark / jekyll-now

Build a Jekyll blog in minutes, without touching the command line.
MIT License
8.25k stars 35.22k forks source link

Rendering inconsistency between Jekyll-now and Github Pages #892

Open zizzipupp opened 7 years ago

zizzipupp commented 7 years ago

@barryclark

I am totally new to Github, css and markdown, so please bare with me. Can anyone please explain why the .md files on Github are rendered in a nice way, whereas they get messed up (especially if they have tables) by Jekyll-now? Perhaps there is something I am missing.

I have produced this .md file using Jupyter and R: https://github.com/zizzipupp/zizzipupp.github.io/blob/master/_posts/2017-05-05-Modern-Italian-immigrants-in-Canada-and-Preferential-Attachment.md

When turned into a blog post with Jekyll-now, its appearance is somewhat different (e.g., tables are not displayed correctly and the font is different): https://zizzipupp.github.io/Modern-Italian-immigrants-in-Canada-and-Preferential-Attachment/

Thanks!

Pugzy commented 7 years ago

The .md markdown file is displayed on Github and uses the default style of Github and the CSS they display .md files in. When you view the post on your site it uses the CSS/SCSS from Jekyll-Now and the styling from that. Both of which are different hence the different display styles.

You can override the styling from Jekyll-Now by editing the scss file or by creating your own css file and following a similar process to what is mentioned in this issue here https://github.com/barryclark/jekyll-now/issues/381.