We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d2f337 commit d418485Copy full SHA for d418485
src/utils/rss.js
@@ -40,7 +40,7 @@ exports.generateRssFeed = function () {
40
const files = filesByOldest.reverse();
41
42
for (const filePath of files) {
43
- const id = filePath.split('/').slice(-1).join('');
+ const id = path.basename(filePath);
44
if (id !== 'index.md') {
45
const content = fs.readFileSync(filePath, 'utf-8');
46
const {data} = matter(content);
0 commit comments