Skip to content

Commit bd0fd8a

Browse files
author
NightVoyager
committed
修复 GitHub Actions 部署问题
- 升级 Hugo 版本到 0.139.3 以支持 FixIt 主题 - 修复 permalink 配置,使用 :slug 替代不兼容的 :contentbasename - 确保与不同 Hugo 版本的兼容性
1 parent c09b3fe commit bd0fd8a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/hugo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
build:
2323
runs-on: ubuntu-latest
2424
env:
25-
HUGO_VERSION: 0.134.1
25+
HUGO_VERSION: 0.139.3
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v4

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ hasCJKLanguage = true
9696
# Permalinks config
9797
[Permalinks]
9898
# posts = ":year/:month/:filename"
99-
posts = ":contentbasename"
99+
posts = "/:slug/"
100100

101101
# Privacy config
102102
[privacy]

0 commit comments

Comments
 (0)