The venerable Ben Balter, Esq. wrote earlier this year about how to add anchor links for headers in Jekyll. I thought I’d follow up that post with one of my own, as I take a slightly different approach.
Font Awesome is, well, awesome. It’s a font of icons that comes with a handy set of CSS classes.
Download the Font Awesome distribution and pull out just the font files. They’re the files that end in
.eot. Grab them all and put them in
fonts/ in your Jekyll site.
Last, add this CSS to the
Enjoy the Magic
Now refresh your site and voilà! It’s like magic. See it in action in the Jekyll docs.