make router nav to correct directory

This commit is contained in:
Triston Armstrong 2023-12-31 11:56:14 -06:00
parent d0424a70f2
commit 25889669f2
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ export class Transformer {
static hrefTemplate = (permalink) => {
// permalink = Transformer.normalizeFileName(permalink)
permalink = permalink.replace("ç", "c").replace("ı", "i").replace("ş", "s")
return `/note/${permalink}`
return `/notes/${permalink}`
}
static getHtmlContent = (content) => {

View File

@ -234,7 +234,7 @@ class Util {
const fileName = Transformer.parseFileNameFromPath(this.toFilePath(slug))
return Transformer.normalizeFileName(fileName) === Transformer.normalizeFileName(thisObject.name)
}) || null
routerPath = routerPath ? '/note/' + routerPath : null
routerPath = routerPath ? '/notes/' + routerPath : null
const newObject = {
name: thisObject.name,
children: children,