Skip to content

Migrated to Hugo

Published: at 08:50 PM

As Octopress is dead and hasn’t been updated for 3 years I’ve and I wanted to write some blog posts I’ve decided to migrate my static site generation to hugo.

I’d like to share some of the things I’ve done and learned during this migration.

Steps

Setup project with hugo

In order to get started I’ve followed the quick start guide.

Move contents

    #!/bin/bash

    cd content/post
    for f in *-*-*-*.*; do
        d="date: ${f:0:4}-${f:5:2}-${f:8:2}T00:00:00+01:00"
        echo "$d - $f"
        sed "2i$d" "$f" > "a$f"
    done

This processed files like 2011-06-22-debian-zeitzone-anpassen.md, extracted the date from the filename and inserted a date: tag with the corresponding date as the second line.


Previous Post
Back Online: Evolving Beyond Traditional Blog Architecture
Next Post
PKCS11 Entwicklung ohne Hardware: SoftHSM als Smartcard oder HSM Ersatz