Generating static pages and blogs with Jekyll

Text Monster

Article from Issue 151/2013
Author(s):

Most people starting a blog will almost automatically turn to WordPress, which calls for PHP, a database, and regular security updates … and thus a lot of attention. With the small Jekyll template engine, you can avoid all that.

Even with a powerful server, it makes sense to compile an Internet site from static pages, whether to reduce load on the server for high-traffic pages or to minimize the risk of attacks.

Maintaining all the subpages by hand, however, can become a Sisyphean task. At this point, template engines can help. They generate a complete Internet site consisting of only static pages from the text content and a layout template. To change the layout of the entire site, you only need to replace the HTML template  – without touching each page individually.

One of the most popular template engines is Jekyll [1], developed by Tom Preston-Werner, who works for project hosting provider GitHub. His tool generates the web pages on the GitHub site [2]. Jekyll is primarily intended for creating blogs. Although you can create arbitrary static pages, it requires a few twists and tricks.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Download Article PDF now with Express Checkout
Price $2.95
(incl. VAT)

Buy Linux Magazine

Related content

  • Static Website Generators

    If you only want to put a blog, technical documentation, or a web business card online, static website generators can save you a lot of work.

  • Warp AI Agent

    The Warp AI agent takes the guesswork out of working at the command line. We show you how to build a simple website with one prompt.

  • Tool Tips

    Tool tests on the fast track

  • News

    Solomon Hykes Leaves Daily Operations at Docker; Red Hat Celebrates 25th Anniversary with a New Code Portal; Gnome 3.28 Released; Install Firefox in a Snap on Linux; Arduino Adds Rasp Pi and BeagleBone to the Arduino Create Platform; and IBM Launches a New Data Science Platform.

  • Workspace: PivotX

    Check out this full-featured solution for your personal or business blog.

comments powered by Disqus