diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index 25ac531..25f9ce6 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -31,20 +31,20 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.155.3 + HUGO_VERSION: 0.164.0 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 # fetch all history for .GitInfo and .Lastmod submodules: recursive - name: Setup Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v7 with: go-version: '1.26' - name: Setup Pages id: pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v6 - name: Setup Hugo run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ @@ -59,7 +59,7 @@ jobs: --gc --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v5 with: path: ./public @@ -73,4 +73,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v5 diff --git a/go.mod b/go.mod index 682e224..ebf10e7 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/Vonng/ddia go 1.24.5 -require github.com/imfing/hextra v0.11.0 // indirect +require github.com/imfing/hextra v0.12.3 // indirect diff --git a/go.sum b/go.sum index 4ed90f2..afa8680 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,2 @@ -github.com/imfing/hextra v0.9.7 h1:Zg5n24us36Bn/S/5mEUPkRW6uwE6vHHEqWSgN0bPXaM= -github.com/imfing/hextra v0.9.7/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= -github.com/imfing/hextra v0.11.0 h1:2HswtfKD/TFg2VWp0hvsH5F3/WoEugiz8s3n2JFouqY= -github.com/imfing/hextra v0.11.0/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= +github.com/imfing/hextra v0.12.3 h1:DZHY2rUWYteyzjlHi9r4n7Bb5e2Q+6LXe4C1Dqn0ZjM= +github.com/imfing/hextra v0.12.3/go.mod h1:vi+yhpq8YPp/aghvJlNKVnJKcPJ/VyAEcfC1BSV9ARo= diff --git a/hugo.yaml b/hugo.yaml index 1717ab9..64568fc 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,5 +1,5 @@ baseURL: 'https://ddia.vonng.com/' -languageCode: 'zh-CN' +locale: 'zh-CN' title: '设计数据密集型应用(第二版)' enableRobotsTXT: true @@ -24,32 +24,32 @@ module: defaultContentLanguage: zh languages: zh: - languageName: 简体中文 - languageCode: zh + label: 简体中文 + locale: zh-CN contentDir: content/zh weight: 1 title: 设计数据密集型应用(第二版) tw: - languageName: 繁体中文 - languageCode: tw + label: 繁体中文 + locale: zh-TW contentDir: content/tw weight: 2 title: 設計資料密集型應用(第二版) v1: - languageName: 简体中文第一版 - languageCode: zh + label: 简体中文第一版 + locale: zh-CN contentDir: content/v1 weight: 3 title: 设计数据密集型应用(第一版) v1_tw: - languageName: 繁体中文第一版 - languageCode: tw + label: 繁体中文第一版 + locale: zh-TW contentDir: content/v1_tw weight: 4 title: 設計資料密集型應用(第一版) #en: - # languageName: English - # languageCode: en + # label: English + # locale: en # contentDir: content/en # weight: 4 # title: Designing Data-Intensive Applications 2nd Edition