mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Bazaar resource directories support symlink https://github.com/siyuan-note/siyuan/pull/8263
This commit is contained in:
parent
9455086820
commit
8b6abec8e9
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ func UninstallBazaarTheme(themeName string) error {
|
||||||
func BazaarTemplates() (templates []*bazaar.Template) {
|
func BazaarTemplates() (templates []*bazaar.Template) {
|
||||||
templates = bazaar.Templates()
|
templates = bazaar.Templates()
|
||||||
for _, template := range 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 template.Installed {
|
||||||
if themeConf, err := bazaar.TemplateJSON(template.Name); nil == err && nil != themeConf {
|
if themeConf, err := bazaar.TemplateJSON(template.Name); nil == err && nil != themeConf {
|
||||||
if template.Version != themeConf.Version {
|
if template.Version != themeConf.Version {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue