Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugo 发布时,生成的 .md 文件名问题 #1530

Closed
zwyyy456 opened this issue Dec 15, 2024 · 3 comments
Closed

hugo 发布时,生成的 .md 文件名问题 #1530

zwyyy456 opened this issue Dec 15, 2024 · 3 comments

Comments

@zwyyy456
Copy link

通过 hugo 发布时,添加到 github 的 .md 文件,能否有 yaml 中 slug 的内容来决定,例如 slug 的内容为 test-hugo.zh,则生成 test-hugo.zh.md,现在无法修改添加到 GitHub 仓库的 md 文件的文件名。

@terwer
Copy link
Owner

terwer commented Dec 16, 2024

暂时不支持。
因为发布工具是自动的,不能检测到是否重名。如果允许修改会导致重名的情况。暂时只能配置为固定的规则。看这里:
#1495 (comment)

@terwer terwer closed this as completed Dec 16, 2024
@terwer terwer reopened this Dec 16, 2024
@terwer
Copy link
Owner

terwer commented Dec 16, 2024

我看看考虑支持加上你这个自动读取 yaml的功能,通过配置开启,但是要自己控制是否重名了。重名会发布失败

image

image

image

image

image

fixed in v1.30.2

terwer added a commit that referenced this issue Dec 16, 2024
@terwer terwer closed this as completed in 16c0c16 Dec 16, 2024
terwer added a commit that referenced this issue Dec 16, 2024
fix: #1530 add option for slug change
@zwyyy456
Copy link
Author

ok,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants