0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

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)
This commit is contained in:
Sebastian Gierlinger 2013-09-05 14:55:28 +02:00
parent dd40149c39
commit aeee7a1404
2 changed files with 8 additions and 2 deletions

View file

@ -61,6 +61,11 @@
{{/each}} {{/each}}
</select> </select>
</div> </div>
<div class="form-group">
<label for="postsPerPage"><strong>Posts per page</strong></label>
<input id="postsPerPage" name="general[postsPerPage]" type="number" value="{{postsPerPage}}">
<p>Number of posts per page displayed</p>
</div>
</fieldset> </fieldset>

View file

@ -164,7 +164,8 @@
email: this.$('#email-address').val(), email: this.$('#email-address').val(),
logo: this.$('#logo').attr("src"), logo: this.$('#logo').attr("src"),
icon: this.$('#icon').attr("src"), icon: this.$('#icon').attr("src"),
activeTheme: this.$('#activeTheme').val() activeTheme: this.$('#activeTheme').val(),
postsPerPage: this.$('#postsPerPage').val()
}, { }, {
success: this.saveSuccess, success: this.saveSuccess,
error: this.saveError error: this.saveError