22 lines
781 B
Plaintext
22 lines
781 B
Plaintext
<%#
|
|
Public landing page: the ungated "/", rendered inside the unified app shell so the menu
|
|
shows (role-filtered — anonymous ⇒ public items + Sign in). A brief intro + a prominent way in, or a
|
|
dashboard link when already signed in. A plugin may replace this via its `home` handler.
|
|
Data: chrome (PageChrome), user (or null).
|
|
%><%
|
|
const nav = include("partials/nav-tree", { nodes: chrome.nav });
|
|
const body = include("partials/landing-body", { brand: chrome.brand.name, signedIn: !!locals.user });
|
|
-%>
|
|
<%- include("partials/shell", {
|
|
body,
|
|
brand: chrome.brand,
|
|
csrfToken: chrome.csrfToken,
|
|
docTitle: chrome.brand.name,
|
|
nav,
|
|
signInHref: chrome.signInHref,
|
|
styles: ["/public/css/auth.css"],
|
|
theme: chrome.theme,
|
|
title: "",
|
|
user: chrome.user,
|
|
}) %>
|