Compare commits

..

No commits in common. 'main' and 'v0.5.1' have entirely different histories.
main ... v0.5.1

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

@ -61,7 +61,6 @@ 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