茶蜂 danger: high entropy

And now, Hugo!

Code Go Hugo

After forgetting about this for, hmm, three years, I figured it was time to start writing again. And of course, I can’t just write. I also have to start over with everything. So this time around I am using Hugo for my static site engine.

I enjoy using Hugo as it has some nice tricks up its sleeve while being quite easy to get running.

Recently, I have also been using VSCode, and to make it a little easier to generate posts I use the following launch.json:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "New Content",
            "type": "shell",
            "command": "read -p 'set_color green; echo -n \"Enter path for file \"; set_color normal; echo \"> \"' pth; and hugo new \"$pth\" --editor code",
            "presentation": {
                "echo": true,
                "reveal": "always",
                "focus": true,
                "panel": "shared"
            },
            "problemMatcher": []
        }
    ]
}

This adds a launch task to create a new page, prompting for the name of the file.

There is also the Hugofy extension for VSCode, however this is more than I need at this point.