Compare commits

...

2 Commits
v0.5.1 ... main

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

@ -60,9 +60,9 @@ class Pages {
this._findFiles(this._dirPath, options)
//
// orderBy
if (options.orderBy && options.orderBy.length > 0) {
this.results = orderBy(options.orderBy, this._results)
this._results = orderBy(options.orderBy, this._results)
}
if (options.limit || options.offset) {

Loading…
Cancel
Save