Inject Content into a Jekyll Post

Published January 14, 2015 • Updated October 28, 2018

There was a period of time when I wanted to inject an ad into a particular part of every Jekyll post. I did not want to put the actual ad markup in the middle of the Markdown text file because it was ugly and would be difficult to manage if I had to make changes.

Continue reading...

Instant Search with Twitter Bootstrap, Jekyll, JSON, and jQuery

Published May 12, 2014 • Updated May 10, 2017

By default, the Twitter Bootstrap Search Field will use Google to search your site. This default functionality works (assuming Google has indexed your site), but it forces you out of your website to the Google search results page. With some tweaks, the search field can be wired to do whatever you want. I wanted a search field that functioned like Google Instant Search with the following features:

Continue reading...

Jekyll Resources

Published May 1, 2014 • Updated May 30, 2018

Jekyll is a fantastic static-site generator. It gives you everything you need to get a simple, clean website or blog up and running fast. It is also extremely extensible through the use of Liquid formatting.

This post will be an ever growing list of the Jekyll resources I have found useful while using Jekyll throughout several projects.

Continue reading...

Display Random Jekyll Posts During Each Page Load or Refresh Using Javascript

Published January 19, 2014 • Updated January 10, 2019

Because Jekyll is a static site generator it can be difficult to have various parts of your website be dynamic. For example, I wanted a side bar element to show a list of randomized posts. I found two methods here and here to go to a random Jekyll post by clicking a link, but nothing that displayed a randomized list of Jekyll posts. So, I adapted the Javascript code from the links into what I was looking for.

Continue reading...