Basic Website With Hugo

Hello! 🤓️

I’m writing this as notes for myself, so I can remember how to write and publish this blog using hugo + google firebase.

Clone my blog repo

My website repository is uploaded to Notabug.org as a private repo. I would clone it using the following command:

git clone --recurse-submodules [URL]

That will clone the entire thing to my local computer, including the “Diary” theme which is the one I use for my blog.

Firebase

I created a project over on Firebase, and my computer is already hooked to it.

You can check the instructions on how to do it on hugo’s documentation:

https://gohugo.io/hosting-and-deployment/hosting-on-firebase/#initial-setup

Publishing

For publishing just make sure your new posts have draft: false in the title and then run this command:

hugo && firebase deploy

Last modified on 2023-03-07