Changeset 42081fb in Klonkt


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@…>

Location:
src
Files:
2 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,
  • src/views/partials/topnav.ejs

    r6150acb r42081fb  
    2626      <% if (_isAdmin) { %>
    2727        <a href="<%= _siteUrlBase %>/" class="nav-link nav-link-admin">← Terug naar site</a>
     28      <% } else if (typeof tenancy !== 'undefined' && tenancy === 'hub') { %>
     29        <%# Hub: de brand is de hub-naam en gaat naar de hub-home (volledige nav, geen
     30            HTMX, zodat de headerloze overview correct rendert). %>
     31        <a class="site-title" href="/" aria-label="Naar de hub-home"><%= (typeof hubTitle !== 'undefined' && hubTitle) ? hubTitle : 'Home' %></a>
    2832      <% } else if (site) { %>
    2933        <a class="site-title" href="<%= _siteUrlBase %>/"
Note: See TracChangeset for help on using the changeset viewer.