Changeset 4d7443b in Klonkt for src/routes


Ignore:
Timestamp:
06/14/2026 03:09:49 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
743bb81
Parents:
bf61be7
Message:

hub: home page redesigned as a label landing page

Separate landing instead of a list: hero (company site title + tagline + bio),
"Artists" roster (all sites except the company site, as avatar cards), and a
"Latest posts" feed across all artists. routes/hub.js now separates company
(primary) from artists (other sites).

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/hub.js

    rbf61be7 r4d7443b  
    4141  `).all();
    4242
    43   // De primaire/oudste site geldt als de bedrijfssite (titel/omschrijving = koptekst).
     43  // De primaire/oudste site geldt als de bedrijfssite (label). De roster toont
     44  // alleen de artiesten (alle overige sites), niet de bedrijfssite zelf.
    4445  const company = res.locals.site || null;
     46  const artists = company ? sites.filter((s) => s.slug !== company.slug) : sites;
    4547
    4648  renderPage(req, res, 'pages/hub-home', {
    4749    pageTitle: company ? company.title : 'Overzicht',
    4850    socialDescr: (company && (company.description || company.tagline)) || '',
    49     bodyClass: 'on-home',
     51    bodyClass: 'on-home on-hub',
    5052    company,
     53    artists,
    5154    posts,
    52     sites,
    5355  });
    5456});
Note: See TracChangeset for help on using the changeset viewer.