The project is in a healthy, maintained state
A Jekyll plugin to embed CodeSandbox projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 4.3
 Project Readme

Jekyll CodeSandbox

This is a Jekyll plugin that allows you to embed CodeSandbox projects in your Jekyll posts. It takes a CodeSandbox project URL and generates an iframe with the project embedded.

Installation

Add this line to your Jekyll site's Gemfile:

group :jekyll_plugins do
  gem 'jekyll-codesandbox'
end

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-codesandbox

and add the following to your site's _config.yml:

plugins:
  - jekyll-codesandbox

Usage

To embed a CodeSandbox project in your Jekyll post, use the following Liquid tag:

{% codesandbox https://codesandbox.io/p/sandbox/id %}

This will generate an iframe with the project embedded.

Result

<iframe src="https://codesandbox.io/p/sandbox/id?fontsize=14&hidenavigation=1&theme=dark"></iframe>