-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_assets folder missing #13
Comments
U shoud use xx.github.io , the folder published, but the url is not right |
I am also having this issue as well. When I reference assets it is missing. Not sure if I am referencing the wrong location somehow or if it's a bug. Resources directory is there, and I can reference those, but not others. |
Hi @KolyaKorruptis and others, After extensive testing and reviewing the Here's the critical part of the code:
The current filter logic in the Theme _assets Path: Given these distinct paths, the plugin's logic does not align the theme's _assets directory with the output directory's _assets folder. To resolve this issue, a modification to the
Hope this helps! |
same problem. |
I fix it using --- a/src/driver/generator/joplinPlugin/PageRenderer.ts
+++ b/src/driver/generator/joplinPlugin/PageRenderer.ts
@@ -36,6 +36,7 @@ import {
getOutputThemeAssetsDir,
getOutputNoJekyll,
} from './pathHelper';
+import path from 'path';
ejs.fileLoader = fs.readFileSync;
@@ -362,7 +363,7 @@ export class PageRenderer {
await fs.copy(this.themeDir, this.outputDir, {
filter: (src, dest) =>
dest === this.outputDir ||
- dest.startsWith(outputAssetsDir) ||
+ path.resolve(dest).startsWith(path.resolve(outputAssetsDir)) ||
(src.endsWith('.json') && !src.endsWith('config.json')),
});
} |
I deployed your fix in my environment and confirm it works! Thank you so much! You're a genius @FreyZhang001 ! |
could you package a new plugin .jpl file? |
The _assets folder is not copied to output and hence never published.
Using Plugin v1.7.0 with default theme and Joplin 2.8.5
The text was updated successfully, but these errors were encountered: