Skip to content

Jekyll for static sites

Philippe Cohen edited this page Feb 1, 2017 · 28 revisions

Overview

Customers are asking to create static contents, corporate web sites, blogs and any other types of static sites. A static site is a site that does not require a server logic, usually when no user data is created,so no security logic (authorizations) and no persistence is required. Note that a static site may have a strong logic in the client side (may be a full reactJS app!).

Most common way to create static sites today

Today most of static sites that must be edited by people not familiar with HTML/CSS will be likely using Wordpress, or Drupal. Other popular CMS (Content Management System) such as Jumla, and many others (see http://cms-software-review.toptenreviews.com/).

The drawbacks of these systems is that because they are full scale (PHP for the most) applications running on top of a database (mySQL most often) so they are slow, complex, rigid systems that requires more learning curve and hosting resources than necessary.

About Jekyll

  • Jekyll is a compiler, that translates simple text written in markdown or other simplified markup languages and will compile it to fully ready to deploy static site composed of html/css/Javascripts.
  • Using a text editor, git software an author can create and update content easily.
  • Jekyll compiler will process all files having a front matter, that is basically a YAML code defining metadata specific to the page, that is interpreted by the template engine (or by the Jekyll engine for predifined variables) to generate a final html.
	---
	layout: post
	title: Blogging Like a Hacker
	---

will mean that the variable 'layout' is assigned the value 'post'.

Jekyll resources

Jekyll hosting

CloudCannon: Jekyll hosting service

CloudCannon adds several important values to the basic Jekyll offering:

Synchronization with Dropbox and others

Make it trivial for business users to have a local directory synchronized with dropbox to update their site

Editing online

Nice client side editing, see Visual Editor documentation.

Testing domains

See Documentation page

Agency driven features

It allows to have all sites served from .shefing.com, so all clients feel that they are in shefing hosting

And many other features: 404 pages, contact forms,

Other hosting solutions