Jekyll is a robust static-site generator used primarily for GitHub but was adapted to other platforms. Jekyll makes use of some good technology already well-equipped for static-site generation such as Markdown and Liquid.

One function that Liquid provides is a way to create subroutines. In Jekyll, these are stored in your _includes folder.

The syntax to call your subroutine is the following.

{% include function_name.html %}

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade