-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
请问是否能支持配置不同的RSS地址 #376
Comments
Hi~ 可以提供更多关于工作流的日志细节吗,我在 链接指向的 GitHub Actions 中看到不到您说的 failed workflow。然后我简单复现了一下环境,拉取了同样的源码和工作流,并没有出现您说的问题0.0 另外,关于 Hugo RSS 的索引策略可以看一下官方文档的介绍。 |
谢谢回答!我分开来说~ 我用的这个工作流来自于reuixiy/hugo-theme-meme#107 我看了Hugo文档的RSS查找逻辑,但是我仍然不太清楚如何让它生成别的RSS文件 |
应该是因为主题自动生成rss文件所以出错的。 menu:
main:
- identifier: home
name: Home
url: /
weight: -100
pre: home
params:
### For demonstration purpose, the home link will be open in a new tab
newTab: false
- identifier: rss
name: rss
url: /index.xml
weight: -10
pre: home
params:
### For demonstration purpose, the home link will be open in a new tab
newTab: true
虽然跟issue没有什么关系,就是有点在意这个。这是我的workflow,我是可以正常输出的。 name: GitHub Page
on:
push:
branches:
- master # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.87.0'
extended: true
- name: Cache resources
uses: actions/cache@v2
with:
path: |
resources
key: ${{ runner.os }}-hugocache-${{ hashFiles('content/**/*') }}
restore-keys: |
${{ runner.os }}-hugocache-
- name: Build
run: hugo --minify --gc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./public
external_repository: zhixuan2333/zhixuan2333.github.io
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
full_commit_message: Deploy from ${{ github.repository }}@${{ github.sha }} 🚀
|
由衷感谢!已经在Blog里加上了。 ↓ 问题关闭是点提交的时候按错了……以及我这边看你的workflow并不能解决自动更新文章最后编辑时间,可以检查一下,目前你Blog的所有文章页面都显示最后更新于 2021 年 10 月 3 日 20:04 +0900,这个时间应该是你最近一次部署的时间。 |
update.. 现在应该可以了 - uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
+ fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod |
请教一下,具体是什么原因导致的? |
|
明白了,谢谢! |
巧了我最近也在研究这个方案https://blog.echosec.top/p/hugo-hugo-deploy/ |
如果是想把 outputFormats:
RSS:
mediatype: "application/rss"
baseName: "feed" |
Hugo自动生成的RSS地址为index.xml
但如果在Page里指定地址为
/index.xml
,以Github Action进行自动部署,Github Action则会报错我使用的Workflow为https://github.com/he-sb/tech/blob/master/.github/workflows/build.yml
如果有别的方法可以解决也请不吝赐教,非常感谢!
The text was updated successfully, but these errors were encountered: