Changeset 8afbdd6 in Klonkt for src/routes/hub.js
- Timestamp:
- 06/14/2026 06:07:51 PM (3 months ago)
- Branches:
- main
- Children:
- c869272
- Parents:
- b94c08e
- File:
-
- 1 edited
-
src/routes/hub.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/hub.js
rb94c08e r8afbdd6 35 35 `).all(); 36 36 37 // ALLE PrutFolio's (elke user, incl. de admin z'n eigen site) voor de roster. 37 // Uitgelichte PrutFolio's voor de home-roster: meest-actief eerst (aantal 38 // gepubliceerde posts), dan nieuwste. Beperkt tot HOME_ROSTER_LIMIT zodat de 39 // home schaalt — de volledige, doorzoekbare lijst staat op /artiesten. 40 const HOME_ROSTER_LIMIT = 24; 38 41 const artists = db.prepare(` 39 42 SELECT s.slug, s.title, s.tagline, s.profile_photo, s.accent, … … 42 45 FROM sites s 43 46 LEFT JOIN users u ON u.id = s.owner_id 44 ORDER BY s.created_at ASC 45 `).all(); 47 ORDER BY post_count DESC, s.created_at DESC 48 LIMIT ? 49 `).all(HOME_ROSTER_LIMIT); 50 const totalArtists = db.prepare('SELECT COUNT(*) AS c FROM sites').get().c; 46 51 47 52 // De hub-pagina is GENERIEK (van geen enkele user) — branding komt uit globale … … 60 65 hub, 61 66 artists, 67 totalArtists, 68 rosterLimit: HOME_ROSTER_LIMIT, 62 69 posts, 63 70 });
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)