MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / getUrlForPathname

Function getUrlForPathname

apps/site/next.dynamic.mjs:207–208  ·  view source on GitHub ↗
(l, p)

Source from the content-addressed store, hash-verified

205 const { data } = matter(source);
206
207 const getUrlForPathname = (l, p) =>
208 `${baseUrlAndPath}/${l}${p ? `/${p}` : ''}`;
209
210 // Default Title for the page
211 pageMetadata.title = data.title

Callers 1

_getPageMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected