Show Admin nav only when GET /admin succeeds
Probe Authelia-protected /admin with credentials; keep the public site free of admin links for anonymous visitors.
This commit is contained in:
@@ -90,8 +90,7 @@ export function HomePage() {
|
||||
</div>
|
||||
{recent.length === 0 ? (
|
||||
<p className="home-empty">
|
||||
Projects will appear here once published. Use the{" "}
|
||||
<Link to="/admin">admin panel</Link> to add work, or import from ArtStation.
|
||||
Projects will appear here once published.
|
||||
</p>
|
||||
) : (
|
||||
<div className="project-grid">
|
||||
|
||||
Reference in New Issue
Block a user