Hugo: better suited static site generator?

There are several static site generators that I have tried, and Hugo is now up for review. It claimms to be the fastest, with pagebuilds of 1 ms per page. That is certainly impressive, but there are other aspects of Hugo that appeal to me. I have looked at Jekyll and [Pelican]. I like Jekyll because it is tightly integrated with Github pages, making it easy to launch a site. What I don’t like about Jekyl is that it is written in Ruby, mainly because I don’t know Ruby well enough. ...

September 1, 2021 · Wijnand Baretta

Create post via shell script

I want to write posts via the command line and I want it to be as effortless as possible. Every time I want to start writing, I end up in a loop: let’s create a site to publish my writing what are the possibilities? Django or static site? which static site generators are there? This one’s nice! it’s perfect for what I want can I change the theme/templates? After a while, I have yet another nice static site. Sometimes all the way down to a published site, sometimes stuck somewhere half-way. But all of the time, the writing of content stops, doesn’t get started, never happens. No matter what the reason for this is, I need to get out of this loop. ...

August 31, 2021 · wijnandb

Creating a new Git repository on Github and synching to it

I want to create a new Git repo and write down the commands to add new content or create a script which does that for me. First, I go to the root directory of my (local) project and initiate a new Git repository: $ git init We now have an empty git repository. Add all files to it with $ git add . Setting up a repo on Github: $ gh repo create project-name I need to set the upstream branch on Github and get the .gitignore and the LICENSE that were created when setting up the repo on Github: repository: ...

August 31, 2021 · Wijnand Baretta

Creating a new post from the command line

Ok, that worked. I can now create new posts from the command line by simply calling the bash script I have created. Calling ./new-post.sh asks for a title and keywords (tags) and creates a new post for me in the desired directory (~/15-a-day/posts). This is a good beginning, there are however some steps left. First, let me document what I have created by adding the contents of the bash script to this post. ...

August 31, 2021 · Wijnand Baretta

Random XKCD Comic

July 3, 2015 · Wijnand Baretta

Today, while standing outside of a Bagels and Beans in Leiden, I was admiring a brand new electric bike. It looked awesome. When the owner saw me checking out his beautiful bike, we started talking. Hamza is from Syria and lives in an AZC. He hasn’t seen his parents, who are still living in Syria, in 12 years. He hasn’t seen his son, daughter and wife, who are living in Turkey, for 2 and a half years. He proudly showed me their photographs. ...

Wijnand Baretta