Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Bazaar resource directories support symlink https://github.com/siyuan-note/siyuan/pull/8263

Liang Ding8b6abec8e90b
diff --git a/kernel/model/bazzar.go b/kernel/model/bazzar.go
index d24eeb4283..72ba494254 100644
--- a/kernel/model/bazzar.go
+++ b/kernel/model/bazzar.go
@@ -249,7 +249,7 @@ func UninstallBazaarTheme(themeName string) error {
func BazaarTemplates() (templates []*bazaar.Template) {
templates = bazaar.Templates()
for _, template := range templates {
- template.Installed = gulu.File.IsExist(filepath.Join(util.DataDir, "templates", template.Name))
+ template.Installed = util.IsPathRegularDirOrSymlinkDir(filepath.Join(util.DataDir, "templates", template.Name))
if template.Installed {
if themeConf, err := bazaar.TemplateJSON(template.Name); nil == err && nil != themeConf {
if template.Version != themeConf.Version {