Tips For Writing Hugo Blog Posts

I often find myself referring to past blog posts to find the syntax for these specific tips. Instead of continuing to hunt through my posts, I figured I could write a single blog post with all the little things I often have to lookup. Short Codes Hugo has a wonderful thing “short codes”, which are small snippets of code to help you format your blog posts. Your theme should have come with some, generally you can find these in themes/[theme-name]/layouts/shortcodes, which is the same directory you can use to write your own....

October 20, 2021 · 3 min · Greg Hilston

How I Easily Write Blog Posts

I’m a strong believer in: The easier something is to do, the more likely you’ll do it. That’s why I spent some upfront energy making it as easy to write new blog posts as possible. This is what allows me to document small thoughts or issues I encounter. The first step was choosing a tool that makes it easy to write new blog posts. I’ve been sold on the idea of static site generators, where one essentially has to write markdown and the framework will apply a series of HTML/CSS/JS in the form of a “theme” and spit out a static website....

November 15, 2020 · 3 min · Greg Hilston

How To Use Jupyter Notebook As Hugo Blog Post

The first cell in the notebook should be a markdown cell with a Hugo header. Example: --- title: "How To use Jupyter Notebook As Hugo Blog Post" date: 2020-04-10 tags: ["data science", "machine learning", "hugo"] draft: false --- Write all your python code and markdown annotations in the Notebook as normal Once done, remember one can individually select if a cell will be exported to Markdown or not by clicking the wrench on the side “Notebook Tools” and selecting a different “Raw NBConvert Format”...

April 10, 2020 · 1 min · Greg Hilston