Wintersmith on Raspberry Pi

Wintersmith is a open source flexible static website generator writen in Node.js that uses Jade for templating and Marked.

Jade is a simple and easy to use templating engine that supports complete HTML markup and uses indent to nest a specific tag in or out of another tag. Marked is a Markdown parser that supports GitHub Flavoured Markdown. Wintersmith stores it’s preferences and settings in a config.json file. Wintersmith is faster than most of the popular static website generator, Wintersmith can gain more functionality when plugins are added by default, Wintersmith ships with paginator.coffee plugin that lets you paginate your posts. Wintersmith is also very lightweight which makes it a winner for the Raspberry Pi in the static website world.

We can begin by installing Wintersmith by following a few simple steps.

Installing Node.js on Debian based Linux distribution for Raspberry Pi (Raspbian, PiBang).

Downloading

wget http://node-arm.herokuapp.com/node_latest_armhf.deb  

Installing

sudo dpkg -i node_latest_armhf.deb  

Installing Node.js on Arch Linux ARM for Raspberry Pi.

sudo pacman -Sy nodejs  

Installing on Fedora based Linux distribution for Raspberry Pi (Fedora ARM, Pidora).

sudo yum install node npm  

Once you are done installing Node.js on your Raspberry Pi, we can now go ahead and successfuly install Wintersmith.

sudo npm install -g wintersmith  

We now have Wintersmith installed on our Raspberry Pi.

You can now create you first Wintersmith based website.

wintersmith new Blog  

Now you can enter the directory.

cd Blog/  

We can load the preview web server that comes built-in in Wintersmith.

wintersmith preview  

We can alslo build the output files.

wintersmith build  

To customise your website edit the config.json.

Author: Darryl

I am a self-taught programmer and CG Artist, I write on programming and 3D Animation, tips, and tricks and my experience with things, sometimes I write content on demand if the topic interests me. I love sharing knowledge,

Leave a Reply