Function: relativePagePath()
Source: 1.6.3 · aea2a9b6dbec
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