[Scummvm-git-logs] scummvm-sites web-planet -> 5c431dda9c323eb6b6177b1991ad49b298663270

sev- noreply at scummvm.org
Sun Apr 5 19:34:11 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-sites' repo located at https://api.github.com/repos/scummvm/scummvm-sites .

Summary:
5c431dda9c PLANET: Always show at least 10 items on the Planet


Commit: 5c431dda9c323eb6b6177b1991ad49b298663270
    https://github.com/scummvm/scummvm-sites/commit/5c431dda9c323eb6b6177b1991ad49b298663270
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-04-05T21:33:47+02:00

Commit Message:
PLANET: Always show at least 10 items on the Planet

Changed paths:
    planet-scummvm/planet.scummvm.html.erb


diff --git a/planet-scummvm/planet.scummvm.html.erb b/planet-scummvm/planet.scummvm.html.erb
index b4139aa..db200c2 100644
--- a/planet-scummvm/planet.scummvm.html.erb
+++ b/planet-scummvm/planet.scummvm.html.erb
@@ -29,6 +29,10 @@
      item.updated > 30.days.ago
    }.sort { |a, b| b.updated <=> a.updated }
 
+   if items.size < 10
+     items = site.items.sort { |a, b| b.updated <=> a.updated }.first(10)
+   end
+
    index = 0
    ItemCursor.new( items ).each do |item, new_date, new_feed|
      index += 1




More information about the Scummvm-git-logs mailing list