pelican
static site

In this post, we’re gonna discuss static site generators powered by Python, JavaScript, and Ruby on Rails. we can also call it as a blog and there are tons of static site generators available for different uses like photography, articles etc. This type of site generators generally supports markdown for rendering the static pages. Below are three easy to use and easily deployable site generators. Among all Jekyll is actively maintained and has the largest community

  1. Pelican

Pelican is a static site generator that supports markdown and rest syntax. It is written in Python. No database or server side logic is required to generate pages. It is easily deployable and to host anywhere from GitHub pages. It is less complex.

pelican static site
Pelican static site

You can simply install Pelican via pip install pelican command which requires Python 2.7 or later. It carries jinja2 template engine. To start just write pelican-quickstart and it’ll open up the wizard of the domain.  After installing you can start writing a post or in markdown with .md extension in the content folder. It offers syntax highlighting You can clone plugins and themes from the Github repositories. Make sure you clone both plugins and themes under your site folder. All the configuration of the site lies in pelicanconf.py. You can later edit the themes and plugins. After few articles, you can deploy your site freely on GitHub pages under project section. This command will  generate the site and save it in the output folder pelican /path/to/your/content/ [-s path/to/your/settings.py]

2. Jekyll

Jekyll static site generator is written in ruby. Jekyll simply takes the content, renders markdown or textile and liquid templates and produce complete static site served by Apache HTTP server. Jekyll is the engine behind GitHub pages.

jekyll static site
Jekyll static site

It is easily deployable on GitHub pages. Jekyll supports front-end frameworks such as Bootstrap. Assuming as a linux user ruby is already installed in the system. Type below command to get started

gem install Jekyll bundler

Jekyll new my-site

Above commands will generate your project with the name my-site.

bundle exec Jekyll serve this command will start displaying pages on the localhost server with port 4000 by default.

3. Hexo

Hexo is fast, simple and powerful static site generator or blog framework based on JavaScript and powered by node js. To get started simply type the following command with dummy post.

hexo static site
hexo static site

Hexo init blog This command will initialize the main directory with the name blog.

cd blog

npm install This command will install the missing dependencies for the previous init.

hexo server This command will start the server with the default port 4000. Hexo static site generator is also easily deployable on GitHub pages. The user can manually install the plugins with cli command. For further information check out this. It is very difficult to choose from above three static site generators. I’ll go for pelican as I am Pythonista. Pelican is sober and simple python based blog framework and it is cheap too. You can choose any of these because overall it generates static pages.

LEAVE A REPLY

Please enter your comment!
Please enter your name here