Changeset 42081fb in Klonkt for src/middleware/render.js


Ignore:
Timestamp:
06/14/2026 04:59:38 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
3c196f9
Parents:
6150acb
Message:

hub: home button on user sites — masthead brand becomes the hub name -> hub home

On /user/<artist> pages the masthead now shows the HUB name (hub_title)
top-left, linking to the hub home (/) — a clear home button. The artist
name remains in the profile header below. Not on the overview (the name
is already in the hero there). hubTitle comes from render.js (getSetting).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/middleware/render.js

    r6150acb r42081fb  
    1515import db from '../config/database.js';
    1616import PermissionsService from '../services/PermissionsService.js';
     17import { getSetting } from '../services/SettingsService.js';
    1718import { PLATFORMS as PLATFORMS_CATALOG } from '../services/PlatformIcons.js';
    1819
     
    5960    siteUrlBase: res.locals.siteUrlBase || '',
    6061    tenancy: res.locals.tenancy || 'solo',
     62    hubTitle: getSetting('hub_title') || '',
    6163    platforms_catalog: PLATFORMS_CATALOG,
    6264    permissions: PermissionsService,
Note: See TracChangeset for help on using the changeset viewer.