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:
2026-07-24 08:48:20 -04:00
parent 43928f7a49
commit af5bfc1b75
4 changed files with 48 additions and 2 deletions
+1 -2
View File
@@ -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">