mirror of
https://github.com/tiennm99/iammiti99.git
synced 2026-10-13 06:15:39 +00:00
refactor: switch Hugo config from TOML to YAML
This commit is contained in:
1 parent
37dbf84c14
commit
ef7c94de8e
4 files changed
+34
-33
No files matched your search
@@ -6,7 +6,7 @@ alternative for my own use.
|
|||||||
|
|
||||||
## How it works
|
## 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.
|
Actions builds with Hugo + bonsai → output deploys to GitHub Pages.
|
||||||
|
|
||||||
## Local development
|
## Local development
|
||||||
@@ -32,7 +32,7 @@ domain — Hugo will copy it through to the deployed site.
|
|||||||
## Project layout
|
## 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
|
content/_index.md # placeholder so Hugo renders the index
|
||||||
static/images/ # avatar etc.
|
static/images/ # avatar etc.
|
||||||
themes/bonsai/ # bonsai theme (git submodule)
|
themes/bonsai/ # bonsai theme (git submodule)
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@
|
|||||||
title: "Home"
|
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`.
|
||||||
@@ -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"
|
|
||||||
@@ -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
|
||||||
Reference in new issue
Block a user