bugfix for permalink for subdirectories

main v0.5.3
HerrHase 2 weeks ago
parent 7da3916f29
commit 6d77c21c14

@ -1,6 +1,6 @@
{ {
"name": "@site-o-mat/core", "name": "@site-o-mat/core",
"version": "0.5.2", "version": "0.5.3",
"build": "webpack", "build": "webpack",
"author": "Björn Hase <me@herr-hase.wtf>", "author": "Björn Hase <me@herr-hase.wtf>",
"main": "index.js", "main": "index.js",

@ -61,6 +61,7 @@ class Page {
if (fs.existsSync(configStore.get('source') + this._permalink) && this._slug) { if (fs.existsSync(configStore.get('source') + this._permalink) && this._slug) {
this._dirPath += '/' + this._slug this._dirPath += '/' + this._slug
this._filename = 'index' this._filename = 'index'
this._permalink += '/'
} }
this._filename += '.' + this._fields.extensions this._filename += '.' + this._fields.extensions

Loading…
Cancel
Save