How I blog
I customized the blackfriday.BlockCode func to use GoDoc’s code renderer. It makes my Go code blocks look similar to GoDoc, which is pleasing to my eyes. Here is an example:
// Print hello fmt.Println("Hello")
Isn’t that beautiful?
To render HTML files, I execute this on my blog repository:
$ blgo watch src/*.md
To preview the posts, I use the gofile command to serve the files locally:
$ gofile 8080
For more details on how I changed the BlockCode funct see my post on overriding a struct method.