Skip to content

Commit 8c26a25

Browse files
committed
support slides theme
1 parent dcef5d6 commit 8c26a25

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "mdfriday",
33
"name": "Friday",
4-
"version": "0.10.13",
4+
"version": "0.10.14",
55
"minAppVersion": "0.15.0",
66
"description": "Notes to Website. Friday helps you turn Markdown documents into websites in minutes.",
77
"author": "sunwei",

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-friday-plugin",
3-
"version": "0.10.13",
3+
"version": "0.10.14",
44
"description": "Friday is an Obsidian plugin that empowers users to focus on content creation by writing Markdown files, while we handle the distribution. From creating websites to content deployment, Friday serves as a creative output assistant, helping users turn their work into publishable sites with ease.",
55
"main": "main.js",
66
"scripts": {
@@ -41,7 +41,7 @@
4141
}
4242
},
4343
"dependencies": {
44-
"@mdfriday/foundry": "^25.10.9",
44+
"@mdfriday/foundry": "^25.10.16",
4545
"@tsconfig/svelte": "^1.0.10",
4646
"basic-ftp": "^5.0.5",
4747
"esbuild-svelte": "^0.7.1",

src/svelte/Site.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
3636
// State variables
3737
let basePath = plugin.pluginDir;
38-
let absSelectedFolderPath = '';
39-
let absProjContentPath = '';
38+
let absSelectedFolderPath = [];
39+
let absProjContentPath = [];
4040
let contentPath = '';
4141
4242
// 从 site 实例获取响应式数据
@@ -619,8 +619,8 @@
619619
httpServer = await startIncrementalBuild({
620620
projDir: absPreviewDir,
621621
modulesDir: absThemesDir,
622-
contentDir: absSelectedFolderPath,
623-
projContentDir: absProjContentPath,
622+
contentDirs: absSelectedFolderPath,
623+
projContentDirs: absProjContentPath,
624624
publicDir: path.join(basePath, serverRootDir),
625625
enableWatching: true, // 启用完整的文件监控和增量构建
626626
batchDelay: 500,
@@ -982,8 +982,8 @@
982982
sourcePath = path.join(adapter.getBasePath(), folder.path);
983983
absTargetPath = path.join(adapter.getBasePath(), targetPath);
984984
985-
absSelectedFolderPath = sourcePath;
986-
absProjContentPath = absTargetPath;
985+
absSelectedFolderPath.push(sourcePath);
986+
absProjContentPath.push(absTargetPath);
987987
} else {
988988
// If not FileSystemAdapter, fall back to copying files
989989
console.warn('Not using FileSystemAdapter, falling back to copying files');
@@ -1046,8 +1046,8 @@
10461046
absContentDir = path.join(adapter.getBasePath(), targetPath);
10471047
absTargetPath = path.join(absContentDir, 'index.md');
10481048
1049-
absSelectedFolderPath = path.dirname(sourcePath);
1050-
absProjContentPath = absContentDir;
1049+
absSelectedFolderPath.push(path.dirname(sourcePath));
1050+
absProjContentPath.push(absContentDir);
10511051
} else {
10521052
// If not FileSystemAdapter, fall back to copying file
10531053
console.warn('Not using FileSystemAdapter, falling back to copying file');

versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
"0.10.10": "0.15.0",
4040
"0.10.11": "0.15.0",
4141
"0.10.12": "0.15.0",
42-
"0.10.13": "0.15.0"
42+
"0.10.13": "0.15.0",
43+
"0.10.14": "0.15.0"
4344
}

0 commit comments

Comments
 (0)