Attempting to Learn Go - Ghost to Hugo 4

Intro Here we are once again! If you missed the last couple of posts I suggest reading them first to get a feeling for how our little prototype has evolved. This time around we’re going to be doing some refactoring to clean up a bit. The majority of what we’ll be doing is adding methods to our “database” struct. The Method What is a method? Well, you can think of it as a function that is attached to a struct. …

Posted on

Attempting to Learn Go - Ghost to Hugo 3

Intro We’re back once again to continue our work on the ghost2hugo prototype. So far we can open the JSON file, load the data into memory, and print out the Markdown for the first post. The next step is to make sure we can read and process every post included in the backup. Looping We’re going to replace all the code that prints a single article with a loop that prints out each article. …

Posted on

Attempting to Learn Go - Ghost to Hugo 2

Intro Welcome back! We are continuing on our journey to make a prototype program that converts an exported Ghost database to Markdown. With the end goal being that we can get shindakun.net up and running with Hugo. Last time, we took it pretty easy and focused mostly on reading the file into memory and converting the JSON to a Go struct. From there we printed out the first post. Post Data As a recap here is what one of the post fields contain. …

Posted on

Attempting to Learn Go - Ghost to Hugo 1

Intro You probably don’t know this but shindakun.net has been effectively offline now for months. Currently, visiting it will only show a white page and a pop-up, no content is accessible. This is a side effect to my upgrading to a new server and moving away from Ghost as my platform of choice. I love(d) Ghost but it just got too large to effectively run multiple sites on a small instance on Digital Ocean. …

Posted on