File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ The loaded data will be an array with the type of `ContentData[]`:
99
99
100
100
``` ts
101
101
interface ContentData {
102
- // mapped absolute URL for the page. e.g. /posts/hello.html
102
+ // mapped URL for the page. e.g. /posts/hello.html (does not include base)
103
+ // manually iterate or use custom `transform` to normalize the paths
103
104
url: string
104
105
// frontmatter data of the page
105
106
frontmatter: Record <string , any >
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export function createContentLoader<T = ContentData[]>(
140
140
: { excerpt : renderExcerpt }
141
141
)
142
142
const url =
143
- config . site . base +
143
+ '/' +
144
144
normalizePath ( path . relative ( config . srcDir , file ) )
145
145
. replace ( / ( ^ | \/ ) i n d e x \. m d $ / , '$1' )
146
146
. replace ( / \. m d $ / , config . cleanUrls ? '' : '.html' )
You can’t perform that action at this time.
0 commit comments