flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 450ea8e697462b265494ae506116b98800041757
parent 176ac4ccbf79af794a6869faee9994aa8913fbc4
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu,  7 Jan 2021 10:52:06 -0800

Reduce number of files on index page

Diffstat:
Mdb.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/db.go b/db.go @@ -146,8 +146,8 @@ func getIndexFiles(admin bool) ([]*File, error) { // cache this function sort.Slice(result, func(i, j int) bool { return result[i].UpdatedTime.After(result[j].UpdatedTime) }) - if len(result) > 50 { - result = result[:50] + if len(result) > 35 { + result = result[:35] } return result, nil } // todo clean up paths