Hugo
Before I created this site I contemplated if I would do so at all. I have been using Discord for years, and it has been working fine. However, there are three reasons why I needed to move away from it. First being that Discord is a proprietary and centralized platform which can either become completely locked behind subscription or closed down at short time notice. Second is that while I invite only certain people to my server, I have heard some voiced opinion on invites from people I has of yet get to known close enough to feel comfortable to invite. Third is that Discord limits myself to short posts less than 500 characters, and I would like to write longer in certain instances to go deeper into certain subjects. This made me think it was time to separate discussion with content in Discord and create a dedicated blog for my thoughts. After asking around I found that Hugo1 was a great contender to be my SSG2 instead of the common CMS3 most blogs use. It can use several file types, including markdown, and also meta data, like tags, draft and date.
While installation went smooth with just a single command, running Hugo installation procedure resulted in a folder structure that seemed intuitive at first. I downloaded a theme and got cracking understanding the structure. I immediately began to struggle, both because the theme did not work as I anticipated, but also because the content tree I set up was not visualized as I anticipated. Therefore I studied how the content tree should look like and then I created my own theme that I could modify to my preferences. It does not look pretty, but at least it works, and I can easily modify it further if needed as I learn. Some mentioned that they would prefer a system where they only write content, but I like to have something versatile that I can adjust to my liking while I keep learning. I like to write, but learning is something I still strive for, to become better and more knowledgeable in order to share more.
For the content itself I wanted to transfer everything from Discord in its raw state. As this might only be a few hundred posts, I still felt it would be too time consuming and prone to error if I did it by hand, so a script was quickly thrown together to generate the markdown files with its necessary meta data. I even added so it would download any attached file and add it at the bottom of the post. As only one of them was not an image, I just used the default figure shortcode and manually modified that single file with a custom shortcode for downloading files. The initial script I used to get the data came from StackOverflow, but then modified to fit my usage. Currently I have to manually edit the file to change channel and tag, but it can easily be adjusted to support free parameters from cli.
|
|
As some of you might have noticed, I have not filtered out the content I copied over, nor have I adjusted it to fit this platform, but if I ever went back and done that, it would only be to make the posts consistent. I also plan to add more features to the blog, to make it easier to navigate. I probably will shuffle around some posts and sections, as I still feel like it is a bit difficult doing so in certain cases. The tags are also quite reserved, so it would be great to break it out into more possible keywords, and apply it as a meta for the page itself.
There are several more reasons why having my own dedicated site benefits more than having it on Discord: I can create drafts for all subjects I want to write about; set up a publishing structure so I can take my time to write and publish instead of writing from the top of my head; better quality in verifying the drafts before publish; more versatility to structure content, being it code, images or scripts. And probably many more that I just cannot think from the top of my head. The more I learn about Hugo, the easier and faster I can modify it to do my bidding, being it how markdown behaves, to how to display the content on each site, and I sure will enjoy it more as I use it.