refactor: switch Hugo config from TOML to YAML

This commit is contained in:
2026-05-13 17:10:05 +07:00
parent 37dbf84c14
commit ef7c94de8e
4 changed files with 34 additions and 33 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ alternative for my own use.
## How it works
Edit [`hugo.toml`](hugo.toml) (`[params]` block) → push to `main` → GitHub
Edit [`hugo.yml`](hugo.yml) (`params:` block) → push to `main` → GitHub
Actions builds with Hugo + bonsai → output deploys to GitHub Pages.
## Local development
@@ -32,7 +32,7 @@ domain — Hugo will copy it through to the deployed site.
## Project layout
```
hugo.toml # site content — edit [params] here
hugo.yml # site content — edit params here
content/_index.md # placeholder so Hugo renders the index
static/images/ # avatar etc.
themes/bonsai/ # bonsai theme (git submodule)
+1 -1
View File
@@ -2,4 +2,4 @@
title: "Home"
---
This file exists so Hugo renders the index page. All bio content comes from `[params]` in `hugo.toml`.
This file exists so Hugo renders the index page. All bio content comes from `params` in `hugo.yml`.
-30
View File
@@ -1,30 +0,0 @@
baseURL = "https://tiennm99.github.io/iammiti99/"
languageCode = "en"
title = "Tien — links"
theme = "bonsai"
# Single-page bio — disable everything Hugo doesn't need.
disableKinds = ["taxonomy", "term", "RSS", "sitemap", "404"]
[params]
name = "@miti99"
tagline = "Engineer building things on the web."
bio = "Tien Nguyen Minh — engineer, builder, writer."
avatar = "/images/avatar.jpg"
themeToggle = false
footerText = "Thanks for stopping by. © 2026 Tien Nguyen Minh"
[[params.links]]
title = "GitHub"
url = "https://github.com/tiennm99"
icon = "github"
[[params.links]]
title = "iammiti99"
url = "https://github.com/tiennm99/iammiti99"
icon = "link"
[[params.links]]
title = "Email"
url = "mailto:minhtienit99@gmail.com"
icon = "mail"
+31
View File
@@ -0,0 +1,31 @@
baseURL: https://tiennm99.github.io/iammiti99/
languageCode: en
title: Tien — links
theme: bonsai
# Single-page bio — disable everything Hugo doesn't need.
disableKinds:
- taxonomy
- term
- RSS
- sitemap
- "404"
params:
name: "@miti99"
tagline: Engineer building things on the web.
bio: Tien Nguyen Minh — engineer, builder, writer.
avatar: /images/avatar.jpg
themeToggle: false
footerText: Thanks for stopping by. © 2026 Tien Nguyen Minh
links:
- title: GitHub
url: https://github.com/tiennm99
icon: github
- title: iammiti99
url: https://github.com/tiennm99/iammiti99
icon: link
- title: Email
url: mailto:minhtienit99@gmail.com
icon: mail