Fix links for next 13.
This commit is contained in:
@ -27,11 +27,11 @@ export function getFiles(type) {
|
||||
const prefixPaths = path.join(root, 'data', type)
|
||||
const files = getAllFilesRecursively(prefixPaths)
|
||||
// Only want to return workshop/path and ignore root, replace is needed to work on Windows
|
||||
return files.map((file) => file.slice(prefixPaths.length + 1).replace(/\\/g, '/'))
|
||||
return files.map((file) => file.slice(prefixPaths.length + 1).replace(/\\/g, '/'));
|
||||
}
|
||||
|
||||
export function formatSlug(slug) {
|
||||
return slug.replace(/\.(mdx|md)/, '')
|
||||
return slug.replace(/\.(mdx|md)/, '');
|
||||
}
|
||||
|
||||
export function dateSortAsc(a, b) {
|
||||
|
||||
Reference in New Issue
Block a user