Function: relativePagePath()
Source: 1.2.2 · f05e2ff455c2
ts
function relativePagePath(filePath, userRoot?): string | undefined;Defined in: packages/valaxy/shared/page-policy.ts:24
Page path relative to a pages/ directory. pages/posts/hello.md and /abs/pages/posts/hello.md both become posts/hello.md.
Parameters
filePath
string
userRoot?
string
Returns
string | undefined