Add option to configure branch for github_edit_link
还没有人认领这个 Issue。
评估
调研方向
Start by locating the implementation and tests for the github_edit_link tag, then inspect how _config.yml values are read. Add support for a github_edit_branch setting and verify that generated edit links use the configured branch while preserving the existing default behavior.
由索引模型根据 Issue 内容生成。
描述
The github_edit_link tag currently generates edit links that point to the gh-pages branch by default. This is not ideal when using other default branches like main.
It would be helpful to have an option to configure the target branch for github_edit_link, so it can work properly for repositories using non-gh-pages default branches.
Proposal
Add a configuration option such as github_edit_branch to _config.yml:
yaml
github_edit_branch: main
This will make github_edit_link generate links pointing to that branch.
The user can then set this to main, master or other branches as needed.
This will provide more flexibility when using github_edit_link for repositories with different branch setups.
Benefits
- Works for non-gh-pages default branch
- Easy configuration in _config.yml
- More flexibility for users
- Links point to correct branch for editing
Please consider adding this option in a future release. Let me know if any clarification is needed!
- 主要语言
- Ruby
- 星标
- 309
- 派生
- 159
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jekyll/github-metadata 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 58/100
jekyll/github-metadata#302 ·
-
Page未关闭
难度 5/5 一周以上 新手友好度 10/100
jekyll/github-metadata#294 ·
-
难度 4/5 3-5 天 新手友好度 25/100
jekyll/github-metadata#290 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
jekyll/github-metadata#266 · 6 条评论 · 4 个 reaction ·
-
pinned
难度 5/5 一周以上 新手友好度 28/100
jekyll/github-metadata#130 · 5 条评论 · 6 个 reaction ·
查看 jekyll/github-metadata 的全部 Issue
相似的 Issue
-
instrumentation-sidekiq
难度 2/5 1-3 小时 新手友好度 65/100
open-telemetry/opentelemetry-ruby-contrib#2735 ·
维护者通常 2 天内回复
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raising未关闭
难度 2/5 1-3 小时 新手友好度 67/100
ruby/securerandom#92 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
we-promise/sure#5902 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复