Skip to content

A demo to showcase converting a plain HTML site to a Jekyll site 🌏 🧪

Notifications You must be signed in to change notification settings

MichaelCurrin/html-to-jekyll-sample

Repository files navigation

HTML to Jekyll Sample 🌏 🧪

A demo to showcase converting a plain HTML site to a Jekyll site

GitHub tag License

Made with Ruby Made with Jekyll

Hosted with GH Pages

Preview

Note this site is not finished yet - the navbar is not set up right, but the styling and page structure is setup.

Use this project

Use this template

View site - GH Pages

Tutorial

This explains how I create this project as a new Jekyll site, starting from an HTML site.

For intetest, see also the HTML to Jekyll tutorial in the Jekyll docs.

YouTube video

My intention was to take an existing site with content and styling and build a Jekyll site out of it.

I hosted a live session on YouTube to do just that. It is available as a recording.

This repo was created from scratch in that session. I encourage you to watch that video and compare it with this repo.

Choose an HTML base

I found this article of 99 free HTML templates.

The first option on that list is this CodePen, which I liked.

So I used that for the tutorial.

It has "template" in the name, so I feel comfortable that the creator indended the code to be reused by others.

Uploaded repo

I cleaned up the code after the live session and uploaded it as this repo. This is a demo or sample which supplements the tutorial video.

I also copied the rendered content to sample.html as well to make it easier to compare the Jekyll site against it and in case the pen disappears.

Related projects

A example of a Jekyll site also with no theme, based on a tutorial in the Jekyll docs (linked so you can follow the steps too):

If you are interested in a Jekyll site with a theme, see:

If want to build your own theme and then install it in another project of yours, or let the Jekyll community use your theme, see:

Installation

Clone the repo.

Install Ruby and Bundler globally.

Install project gems.

$ make install

Usage

Start dev server.

$ make serve

Do a production build and output as _site directory.

$ make build

Deploy

  1. Get a copy of this repo on GitHub.
  2. Go to Setting for your repo, Pages and then enable GitHub Pages on the main branch on the root path.
  3. Wait for your site to build.
  4. Check the Environment tab and find the URL for your site.

License

Released under MIT by @MichaelCurrin.