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 天內回覆