From 6d77c21c141a2421d94f1de33f09bff47a92aa16 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Thu, 9 Jan 2025 23:48:43 +0100 Subject: [PATCH] bugfix for permalink for subdirectories --- package.json | 2 +- src/factories/page.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 44d82ef..68a66a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@site-o-mat/core", - "version": "0.5.2", + "version": "0.5.3", "build": "webpack", "author": "Björn Hase ", "main": "index.js", diff --git a/src/factories/page.js b/src/factories/page.js index 8d2913a..e4996b8 100644 --- a/src/factories/page.js +++ b/src/factories/page.js @@ -61,6 +61,7 @@ class Page { if (fs.existsSync(configStore.get('source') + this._permalink) && this._slug) { this._dirPath += '/' + this._slug this._filename = 'index' + this._permalink += '/' } this._filename += '.' + this._fields.extensions