]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
www: add optional sortorder config for listing page ordering master
authorRafael Passos <rafael@rcpassos.me>
Tue, 12 May 2026 17:42:42 +0000 (14:42 -0300)
committerEric Wong <e@80x24.org>
Fri, 15 May 2026 21:49:05 +0000 (21:49 +0000)
commit7c2cdb638e0a14a61c5376352302bd063f5f2f33
tree29d5e6204f1147007113c02441876616bbc3f566
parent8cfeeff83a1db46998daff1eccc6580dbc446bc1
www: add optional sortorder config for listing page ordering

Add a publicinbox.<name>.sortorder config key to control inbox
display order on the main listing page.  Lower values appear first,
inboxes without sortorder fall back to mtime-descending order below all
pinned inboxes.  Works with both direct config listing and extindex
all" paths.  Includes documentation in public-inbox-config(5) and
tests.

In my use case, we are hosting our list, and also mirroring the
lore.kernel lists. I want to pin our list to the top, because its the
main purpose of our installation.  I am running with this patch in
"https://lore.kernel.ime.usp.br/" where "kernel.ime" (our list) is
pinned to the top.

Reviewed-by: Eric Wong <e@80x24.org>
Signed-off-by: Rafael Passos <rafael@rcpassos.me>
Documentation/public-inbox-config.pod
lib/PublicInbox/Config.pm
lib/PublicInbox/WwwListing.pm
t/www_listing.t