+++ title = "Hello Blogging (1) - Bootstrapping a blog" tags = ["Static Site Generator", "Hugo", "Blogging"] date = "2025-01-05" +++
Hey, this is Jacky. An average guy floating around the internet abyss.
- Keep track of what I have done (so I don't forget in minutes)
- Maybe somebody need these info to get started
- I could version control my blog content and build it right away
- I could move whatever I wanted to, as this site is static
- It's boring to click and blog
I'm using this template powered by Hugo.
It's simple and clean enough for me to use it as a blogging platform.
Hugo have a huge theme collection for different purpose. You can browse those here.
- Install
hugointo your local environment. I usebrewas I run code on my Mac Mini.
β brew install hugo
- Go to your development folder and create a new site
β hugo new site your-lovely-blog-name
Different theme requires different installation procedure. Please take a look on their Github instructions.
The following will be this specific theme.
- Create an additional folder to version control your blogpost and static content (if any)
β mkdir -p your-blog-content/content/posts
β mkdir -p your-blog-content/static
- Enter your your-lovely-blog-name directory, clone the theme and set the Hugo theme to hugo-theme-m10c
β cd your-lovely-blog-name
β git clone https://github.com/vaga/hugo-theme-m10c.git themes/hugo-theme-m10c
β echo 'theme = "hugo-theme-m10c"' >> hugo.toml
- Move the
hugo.tomlto your-blog-content and soft link them to the your-lovely-blog-name folder
Soft link the content could make the.gitignoreless hassle.
β mv hugo.toml ../your-blog-content/.
β ln -s ../your-blog-content/static static
β ln -s ../your-blog-content/content content
β ln -s ../your-blog-content/hugo.toml hugo.toml
- Don't rush for creating the content. Test it before you continue
β hugo server
Go to http://127.0.0.1:1313 on your browser and you should see something like this.
And you have yor first Static Site Generated.
Next up will be creating a blog post and config some items.
