From aeee7a14043fd41c88b7d1e64fefbccfdd820e63 Mon Sep 17 00:00:00 2001 From: Sebastian Gierlinger Date: Thu, 5 Sep 2013 14:55:28 +0200 Subject: [PATCH] Add setting for posts per page closes #593 - added default setting of 6 posts per page - added posts per page to settings page - added limit to frontend.js (setting does not change API behavior) --- ghost/admin/tpl/settings/general.hbs | 7 ++++++- ghost/admin/views/settings.js | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ghost/admin/tpl/settings/general.hbs b/ghost/admin/tpl/settings/general.hbs index cc344f147f..9d95b01561 100644 --- a/ghost/admin/tpl/settings/general.hbs +++ b/ghost/admin/tpl/settings/general.hbs @@ -57,10 +57,15 @@ +
+ + +

Number of posts per page displayed

+
diff --git a/ghost/admin/views/settings.js b/ghost/admin/views/settings.js index 4263a4d657..bcc64a0f27 100644 --- a/ghost/admin/views/settings.js +++ b/ghost/admin/views/settings.js @@ -164,7 +164,8 @@ email: this.$('#email-address').val(), logo: this.$('#logo').attr("src"), icon: this.$('#icon').attr("src"), - activeTheme: this.$('#activeTheme').val() + activeTheme: this.$('#activeTheme').val(), + postsPerPage: this.$('#postsPerPage').val() }, { success: this.saveSuccess, error: this.saveError