My blogging process
Actually, nobody asked me how I write this blog.
But I thought I’d write about it anyway haha.
I’m used to writing in Markdown, so that’s what I use here too.
I usually write things down in my notes… read everywhere. Sometimes I collect little bits and pieces throughout the whole week. A sentence here, an idea there, something I noticed or remembered. And then sometimes I just sit on the porch and write the whole thing in two minutes.
It really depends.
But, when I have enough for a post, I put it into a .md file.
At the top there is a little bit of information for Hugo, like the title and date, and then I write the actual post underneath it.
The .md file isn’t the webpage itself. It’s just the source.
This is where Hugo comes in.
Hugo is a static site generator. It takes my Markdown files, combines them with my templates and CSS, and generates the actual HTML files that make up the website.
So when I write a new post, I don’t have to write HTML for it.
I just run: hugo
Hugo reads everything in the site, builds the pages and puts the finished website into a folder called public.
That folder is basically the website.
If I open it, I’ll find the HTML files, CSS, images and everything else that needs to be on the server.
I can also preview the site locally before uploading it:
hugo server
It starts a little local web server and I can open the site in my browser, check the new post, fix something, save it and look again.
Once everything looks right, I upload the public folder to Neocities.
Usually just: neocities push public
And that’s it.
I actually like it that way.