Arthur Simiyu

Setting up my new site using hyde

After having several blogs all over the internet, with the last one being my previous blog with posterous, I have finally decided to setup and host my own site and blog. This was decidedly after posterous was acquired by @twitter leaving the fate of the platform unknown.

After looking around for what to use I finally settled on hyde, which is a static web generator powered by Python and Django.

Why a static site?

With the numerous platforms such as wordpress, blogger, tumblr and posterous available why would I decide to build a static site?

One thing that attracted me was the fact that hyde uses python and django. I use python and django to do most of my development and budding this site with hyde would give me the chance to keep learning more. The other alternative was to build a django app which would have been a bit of an overkill for something as simple as my site and blog.

Serving static files is also faster and uses less memory, always a good thing especially with my limited hosting plan on webfaction.

Lastly it easier to maintain and backup. I do not need to login to the site to edit or create a new page. With hyde all I have to do is edit or create the page on my local machine, generate the site with hyde and push the changes to my hosting server. With all the content local on my machine, it’s backed up on my dropbox folder and my bitbucket repo.

Getting started

Getting started with hyde is quite simple. All you need to do is install hyde, which can be done using pip

pip install hyde

Assuming your installation goes OK, you should now have hyde in your $PATH and running hyde create will create the static application which will includes content, layout and the site.yaml and info.yaml files.

The content folder contains the site contents while the layout folder contains the template files used to render the site.

To generate the site that will be deployed after making changes to the content folder files all you have to do is use the command hyde gen

This will create a deploy folder containing the static site contents. What’s left is just to upload the folder’s content to the hosting server and the site is ready to go.