diff --git a/lib/transformer.js b/lib/transformer.js index b04108e..6ce7627 100644 --- a/lib/transformer.js +++ b/lib/transformer.js @@ -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) => { diff --git a/lib/utils.js b/lib/utils.js index b679eb4..a00b961 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -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,