mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🎨 Add icon settings in marketplace package https://github.com/siyuan-note/siyuan/issues/8174
This commit is contained in:
parent
93dad2bfb2
commit
897e98bd0d
6 changed files with 11 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ func Templates() (templates []*Template) {
|
|||
template.RepoHash = repoURLHash[1]
|
||||
template.PreviewURL = util.BazaarOSSServer + "/package/" + repoURL + "/preview.png?imageslim"
|
||||
template.PreviewURLThumb = util.BazaarOSSServer + "/package/" + repoURL + "/preview.png?imageView2/2/w/436/h/232"
|
||||
template.IconURL = util.BazaarOSSServer + "/package/" + repoURL + "/icon.png"
|
||||
template.Updated = repo["updated"].(string)
|
||||
template.Stars = int(repo["stars"].(float64))
|
||||
template.OpenIssues = int(repo["openIssues"].(float64))
|
||||
|
|
@ -138,6 +139,7 @@ func InstalledTemplates() (ret []*Template) {
|
|||
template.RepoURL = template.URL
|
||||
template.PreviewURL = "/templates/" + dirName + "/preview.png"
|
||||
template.PreviewURLThumb = "/templates/" + dirName + "/preview.png"
|
||||
template.IconURL = "/templates/" + dirName + "/icon.png"
|
||||
info, statErr := os.Stat(filepath.Join(installPath, "README.md"))
|
||||
if nil != statErr {
|
||||
logging.LogWarnf("stat install theme README.md failed: %s", statErr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue