feat: rebuild site on Hugo + bonsai theme

Replace the custom Node.js builder with Hugo and the bonsai theme
(added as a submodule at themes/bonsai). Site content moves from
config.yaml into [params] in hugo.toml. CI switched to Hugo Extended
0.154.0 build; daily cron dropped (no API decoration to refresh).
Avatar imported from miti99 project.
This commit is contained in:
tiennm99 committed 2026-05-03 10:45:54 +07:00
1 parent 191bf38d86
commit 37dbf84c14
16 files changed
+94 -569

No files matched your search

+28 -26
View File
@@ -3,9 +3,6 @@ name: Deploy to Pages
on:
push:
branches: [main]
schedule:
# Daily 00:00 UTC — refreshes stars + last-commit decoration on repo links.
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
@@ -18,33 +15,38 @@ concurrency:
cancel-in-progress: true
jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- id: pages
uses: actions/configure-pages@v5
with:
enablement: true
- name: Setup Hugo Extended
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.154.0'
extended: true
- name: Build
run: hugo --gc --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
- uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- name: Build site
run: node build.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/configure-pages@v5
with:
enablement: true
- uses: actions/upload-pages-artifact@v3
with:
path: _site
- id: deploy
uses: actions/deploy-pages@v4