Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix article detection

Blue Mousea4422fe2a1e3
diff --git a/backend/apps/cloud/src/blog/blog.service.ts b/backend/apps/cloud/src/blog/blog.service.ts
index 7f3203594..fed291129 100644
--- a/backend/apps/cloud/src/blog/blog.service.ts
+++ b/backend/apps/cloud/src/blog/blog.service.ts
@@ -26,7 +26,7 @@ const getSlugFromFilename = (filename: string) => filename.substring(11)
const getDateFromFilename = (filename: string) => filename.substring(0, 10)
const findFilenameBySlug = (list: string[], handle: string) => {
- return _find(list, item => _includes(item, handle))
+ return _find(list, item => _endsWith(item, `-${handle}.md`))
}
interface IParseFontMatter {