Demo of shortcodes

Shortcodes in Hugo allow us to achieve common tasks. For example, to link to another post or page in our site, we will use the “ref” shortcode. An example of embedding a GitHub gist:

Syntax highlighting code

I learned about how to post syntax highlighted code in a post. Hugo has two options when it comes to syntax highlighting - server side and client side. This is an example of client side highlighting. You can read all about it here. # A line of Python print('Hello world') // A simple program in Golang package main import ( "fmt" ) func main() { fmt.Println("Hello world") }

Hugo Live Reload

Hugo has a live reload feature which means, the moment I save this page, not only is my site content regenerated, but the browser also reloads the site. This means, I can see my new post without needing to refresh the site myself.

hello world

Hello World! This is the first blog post in my brand new blog “Today I Learned”. I will be using this blog as a place to post my notes on everyday things I learn.