Welcome to the innards of my website. Fairly recently, my site and I went through a somewhat philosophical change, opting for speed over much else on the backend, and for editorial-inspired design over personal taste. (Of course, the editorial design only goes as far as my personal taste – and writing style – allow.)
This repo is mostly for me. I, like many of you, host my site on GitHub for reasons of portability, ease of work, and peace of mind. Beyond my own needs, I have also open-sourced this repo for you, the reader (and most likely developer), to explore the things that make my site tick.
Some things you may find interesting:
- Uncompressed Sass files
- adaptive-images.php – this drop-in PHP file from @responsiveimg makes responsive images a cinch. 10/10, would recommend.
- Gruntfile.js – the Grunt configuration used to help me develop locally. Pushing to the server triggers
jekyll build
, so any preprocessing is done locally. - And finally, the plugins directory. There are a few very useful Jekyll plugins in here, including HTML5 image/
figure
tags, ordinal dates, a cachebusting helper, and typographic helpers.
- Why aren’t you hosting this on GitHub?
- While GitHub lets you host Jekyll-powered sites directly on GitHub itself, they don’t allow many custom Jekyll plugins. They also don’t allow executable code such as PHP, which is pretty vital to many parts of the site.
- Ew. *This* is the Animate.css page code?
- I know. It needs work. Why not help me move Animate.css to GitHub pages by opening or contributing to an issue on the project itself?
- How is your site so blazing fast?
- Glad you asked! There are a few reasons. First, my site is hosted on one of RamNode’s SSD servers (yes, that is an affiliate link, and yes, I will get money if you sign up), backed by Apache and Varnish cache on top to help cache requested resources. Second, the adaptive images project is helping me keep my bandwidth and your waiting times down by supplying scaled images. On top of that, Jekyll is helping me make my entire site completely static, which we all know is stupid fast. And finally, the whole domain is being supported by a CloudFlare pro plan, with SPDY, CDN, and other acronyms.