feat: add posts per page setting to site settings
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d7a5d425b8
commit
550ebf728a
2 changed files with 20 additions and 4 deletions
|
|
@ -41,6 +41,13 @@
|
|||
</datalist>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label for="postsPerPage" class="col-sm-3 col-form-label text-end">Posts Per Page</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="number" class="form-control" id="postsPerPage" name="postsPerPage" value="{{ .site.PostsPerPage }}" min="1" max="100">
|
||||
<div class="form-text">Number of posts per page on the generated site.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-9"><button type="submit" class="btn btn-primary">Save Settings</button></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue