Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Jekyll theme with an interactive Conway's Game of Life background that visitors can start, pause, draw on, and recolor.
Game of Life is a Jekyll theme that turns Conway's Game of Life into an interactive, full-page background simulation, letting visitors start, pause, draw, and recolor the cellular automaton directly in the browser.
The Game of Life Jekyll theme is a static-site theme built on Jekyll that uses the p5.js JavaScript library to render a live Conway's Game of Life grid as the page's background. It takes a standard Jekyll site as input and produces a page where the background is an actual simulation, not a static image. The theme is configured through _config.yml, where site owners can change the font and background color. It also includes a customizable Game of Life strip defined in code with lines like board = new Board(columns, rows) and board.fill(starting_column, ending_column, starting_row, ending_row).
e to start or restart the Game of Life, p to pause, and s to resume, making the background an active part of the page.i to enter Insert Mode, then click or drag the mouse to randomly create new cells around the cursor; press ESC to exit.j to slow down and k to speed up the simulation's generation rate.q to erase cells from the screen for a quieter reading experience.Board and fill functions.This theme is for Jekyll users who want a distinctive, animated background for a personal site, blog, or portfolio. It is also a good fit for developers who enjoy Conway's Game of Life and want to experiment with the simulation's parameters directly in the code. Because the background is interactive, it can engage visitors beyond what a static theme offers.
e, pause with p, resume with s, and adjust speed with j and k.Board and fill lines in the theme's JavaScript, such as setting the number of columns, rows, and the region to fill._config.yml without altering the core theme files.The theme runs a p5.js sketch that creates a Board instance with a specified number of columns and rows, then fills a region with starting cells using board.fill(starting_column, ending_column, starting_row, ending_row). On page load, the simulation automatically begins evolving. Visitors interact through keyboard shortcuts: e restarts, p pauses, s resumes, i toggles Insert Mode, q erases cells, j/k adjust speed, and any other key changes cell colors.
Press the e key to start or restart the Game of Life. The simulation runs automatically on page load; pressing e resets it to its initial configuration.
Press the p key to pause the simulation. To resume, press the s key. You can also press q to erase cells entirely if you prefer a clean reading background.
Press i to enter Insert Mode. In this mode, clicking or dragging the mouse randomly creates new cells around the cursor, allowing you to alter the simulation's pattern. Press ESC to escape Insert Mode.
Yes, the font and background color can be changed by editing the _config.yml file included with the theme, using standard Jekyll configuration.
