Changeset 42081fb in Klonkt for src/views/partials/topnav.ejs


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/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.