Machine learning engineer based in London, UK.
2017-02-12 21:47:00 +0000
I thought jekyll and Github Pages would be an easy way to get a website up and running with minimal CSS and HTML hackery. Like many a millennial I learned CSS and HTML at a very early age, but I don’t much find it particularly fulfilling to wrangle with these days. What has been a little more interesting is learning about Ruby (I guess).
After some fiddling, my fix is to put in my _sass/_styles.scss
(which came with the theme), some modifications on classes identified using Firefox ‘Inspect Element’ to specify my preferred fonts:
Github only (apparently) supports syntax highlighting with rouge and not pygments
This post shows how to use rougify to get syntax highlighting stylesheets. My usage:
Then add syntax
to the list of partial files in main.scss
which is looked for in the _sass/
directory by default. An alternative is to just save syntax.css
and import that in head.html
(like the prism stylesheet)
Remove the link to the Prism stylesheet in head.html
since that is apparently a syntax highlighting library for CSS/JS/HTML, etc. and not so relevant for me – plus conflicts with rouge and other settings
Make changes to the appearance of the code block bounding box by modifying the class pre
, which I’ve done in _sass/_highlight.scss