mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 20:08:49 +01:00
🎨 i18n Bazaar package
This commit is contained in:
parent
54dcde6b48
commit
2ceb5f36d5
8 changed files with 37 additions and 2 deletions
|
|
@ -74,6 +74,7 @@ func Templates() (templates []*Template) {
|
|||
template.IconURL = util.BazaarOSSServer + "/package/" + repoURL + "/icon.png"
|
||||
template.Funding = repo.Package.Funding
|
||||
template.PreferredFunding = getPreferredFunding(template.Funding)
|
||||
template.PreferredName = getPreferredName(template.Package)
|
||||
template.PreferredDesc = getPreferredDesc(template.Description)
|
||||
template.Updated = repo.Updated
|
||||
template.Stars = repo.Stars
|
||||
|
|
@ -137,6 +138,7 @@ func InstalledTemplates() (ret []*Template) {
|
|||
template.PreviewURLThumb = "/templates/" + dirName + "/preview.png"
|
||||
template.IconURL = "/templates/" + dirName + "/icon.png"
|
||||
template.PreferredFunding = getPreferredFunding(template.Funding)
|
||||
template.PreferredName = getPreferredName(template.Package)
|
||||
template.PreferredDesc = getPreferredDesc(template.Description)
|
||||
info, statErr := os.Stat(filepath.Join(installPath, "README.md"))
|
||||
if nil != statErr {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue