Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 0098baf

Browse files
committed
fix: feed doesn't work fine when useing non-default directory name
1 parent 1ec709c commit 0098baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/handleOptions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export function handleOptions(
245245
posts_directories: [] as string[],
246246
};
247247
directories.forEach(dir => {
248-
defaultFeedOptions.posts_directories.push(dir.dirname);
248+
defaultFeedOptions.posts_directories.push(`/${dir.dirname}/`);
249249
});
250250

251251
services.feed = { rss: true, atom: true, json: true };

0 commit comments

Comments
 (0)