mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🐛 集市更新获取不同步的问题 Fix https://github.com/siyuan-note/siyuan/issues/7775
This commit is contained in:
parent
1366063ac8
commit
bf29561686
4 changed files with 8 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ func Templates() (templates []*Template) {
|
|||
logging.LogErrorf("get bazaar package [%s] failed: %d", innerU, innerResp.StatusCode)
|
||||
return
|
||||
}
|
||||
template.URL = strings.TrimSuffix(template.URL, "/")
|
||||
|
||||
repoURLHash := strings.Split(repoURL, "@")
|
||||
template.RepoURL = "https://github.com/" + repoURLHash[0]
|
||||
|
|
@ -125,6 +126,7 @@ func InstalledTemplates() (ret []*Template) {
|
|||
template.Name = templateConf["name"].(string)
|
||||
template.Author = templateConf["author"].(string)
|
||||
template.URL = templateConf["url"].(string)
|
||||
template.URL = strings.TrimSuffix(template.URL, "/")
|
||||
template.Version = templateConf["version"].(string)
|
||||
template.RepoURL = template.URL
|
||||
template.PreviewURL = "/templates/" + dirName + "/preview.png"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue