The Blog Refurbished

Tags:

This is my first post on blog

For a long time I wasn't able to manage my blog and finally I forgot how to use this fancy tool named Hugo. As I am not a fan of Go at all. I decided to use kind of static generator written in the language that I like to use. So that's a Perl.

I will try to describe in this post how to configure Statocles.

I used mainly documentation from here.

Main commands:

Check the local changes, this command has no live option unfortunately. So I must restart it again and again. statocles daemon

The deployment is done by generating static HTML/CSS into build directory. The content of directory is uploaded after all onto sr.ht hosting. statocles deploy

A whole configuration is inside the site.yml file. Where I managed three statocles applications.

  • /blog Statocles::App::Blog this expects markdown files placed in the year/month/day subdirectories

  • /about Statocles::App::Basic this expects the single file index.markdown placed.

Each application has its own definition where we define: class, store directory and URL.

With the static app I defined directory to keep all images together.

The deploy script is a helper script for sr.ht hosting.

Enjoy!