%
// Top nav — RESPONSIVE.
//
// Mobile (<768px):
// - Brand centered, small theme-toggle right.
// - All other actions live in the bottom-tab nav.
// - Sticky top, blur background, safe-area-top respected.
//
// Desktop (≥768px):
// - Full v9 masthead: brand left, action row right
// (Archief / Search / Install / Theme / User-menu).
// - bottom-tab is hidden via CSS, so all nav must live here.
const _siteUrlBase = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : '';
const _isAdmin = typeof bodyClass !== 'undefined' && bodyClass.indexOf('on-admin') >= 0;
// Fediverse pages (on-special) get the same top-nav "back to site" treatment as admin.
const _isSpecial = typeof bodyClass !== 'undefined' && bodyClass.indexOf('on-special') >= 0;
// In de wardmodus is zoeken dicht voor een bezoeker: geen knop naar een deur op slot.
const _hasSearch = (!site || site.show_search === undefined || site.show_search)
&& !(typeof wardProfile !== 'undefined' && wardProfile);
const _canPost = user && (typeof canMutate === 'undefined' || canMutate)
&& permissions && permissions.canCreatePost && permissions.canCreatePost(user, site);
%>
<%# Balk + vak, dezelfde partial als de pagina /search: zie search-surface.ejs. %>
<%- include('./search-surface', { mode: 'overlay', t: t, siteUrlBase: _siteUrlBase }) %>
<%- include('./search-styles') %>
<%# Het script van de topnav staat in assets/js/mod/chrome.js (shaer-bqr). %>