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 6ff1968 commit 910e026Copy full SHA for 910e026
src/lib/posts.ts
@@ -10,6 +10,7 @@ export type PostContent = {
10
readonly title: string;
11
readonly slug: string;
12
readonly tags?: string[];
13
+ readonly fullPath: string;
14
};
15
16
let postCache: PostContent[];
@@ -38,7 +39,10 @@ function fetchPostContent(): PostContent[] {
38
39
title: string;
40
tags: string[];
41
slug: string;
42
+ fullPath: string,
43
44
+ matterData.fullPath = fullPath;
45
+
46
const slug = fileName.replace(/\.mdx$/, "");
47
48
// Validate slug string
0 commit comments