Skip to content

Commit 31ce07f

Browse files
authored
Merge pull request #10 from jupyter-book/agoose77/fix-url-folders
📂 Respect folder links in cards
2 parents 4c603be + 50e3452 commit 31ce07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/blog.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const blogPostsDirective = {
5353
...descriptionItems,
5454
...footerItems,
5555
],
56-
url: `/${name}`,
56+
url: `/${path.toString().slice(0, -ext.length)}`,
5757
};
5858
});
5959
return Array.from(nodes).slice(0, size);

0 commit comments

Comments
 (0)