mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 09:50:34 +03:00
commit
12c7a571e2
@ -36,7 +36,7 @@
|
||||
blog: function () {
|
||||
var posts = new Ghost.Collections.Posts();
|
||||
NProgress.start();
|
||||
posts.fetch({ data: { status: 'all', orderBy: ['updated_at', 'DESC'], where: { page: 'all' } } }).then(function () {
|
||||
posts.fetch({ data: { status: 'all', staticPages: 'all'} }).then(function () {
|
||||
Ghost.currentView = new Ghost.Views.Blog({ el: '#main', collection: posts });
|
||||
NProgress.done();
|
||||
});
|
||||
|
@ -94,8 +94,7 @@
|
||||
data: {
|
||||
status: 'all',
|
||||
page: (self.collection.currentPage + 1),
|
||||
where: { page: 'all' },
|
||||
orderBy: ['updated_at', 'DESC']
|
||||
staticPages: 'all'
|
||||
}
|
||||
}).then(function onSuccess(response) {
|
||||
/*jslint unparam:true*/
|
||||
|
Loading…
Reference in New Issue
Block a user