xcatliu / pagic

A static site generator powered by Deno + React
https://pagic.org
MIT License
1.65k stars 103 forks source link

配置工具`editOnGithub`默认指向master分支,希望兼容main分支 #59

Closed Sogrey closed 3 years ago

Sogrey commented 3 years ago

Describe the bug 我新建了一个Pagic工程,但配置功能有些问题,参考自配置

export default {
  tools: {
    editOnGithub: true,
    backToTop: true
  }
};

其中editOnGithub设置为true,点击回跳转自master分支,但您可能知道,现在github上新建项目主分支为main而不是master,希望能够修复,或提供配置项以兼容旧项目。谢谢。

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Context

xcatliu commented 3 years ago

确实会有问题,我会改成根据当前构建的分支来决定 editOnGithub 的分支

Sogrey commented 3 years ago

@xcatliu tks.

xcatliu commented 3 years ago

@Sogrey 已在 v0.12.0 中修复

Sogrey commented 3 years ago

非常感谢。我使用以下命令升级pagic,亲测有效。

deno install -f --unstable --allow-read --allow-write --allow-net --allow-run --name=pagic https://deno.land/x/pagic@v0.12.0/mod.ts