🎨 集市支持已安装的包单独显示 https://github.com/siyuan-note/siyuan/issues/5678

This commit is contained in:
Liang Ding 2022-09-02 00:00:29 +08:00
parent 3ad5bb7607
commit cde994cbd4
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 12 additions and 10 deletions

View file

@ -24,7 +24,6 @@ import (
"strings"
"sync"
"github.com/88250/gulu"
"github.com/dustin/go-humanize"
ants "github.com/panjf2000/ants/v2"
"github.com/siyuan-note/httpclient"
@ -146,7 +145,7 @@ func InstalledThemes() (ret []*Theme) {
logging.LogWarnf("read install theme README.md failed: %s", readErr)
continue
}
theme.README = gulu.Str.FromBytes(readme)
theme.README, _ = renderREADME(theme.URL, readme)
theme.Outdated = isOutdatedTheme(theme.URL, theme.Version, bazaarThemes)
ret = append(ret, theme)
}