Hide nav links on public pages
This commit is contained in:
@@ -6,9 +6,8 @@ interface Props {
|
||||
title?: string;
|
||||
description?: string;
|
||||
public?: boolean;
|
||||
slim?: boolean;
|
||||
}
|
||||
const { title = 'BincioWiki', description = 'La memoria collettiva del gruppo Bincio.', public: isPublic = false, slim = false } = Astro.props;
|
||||
const { title = 'BincioWiki', description = 'La memoria collettiva del gruppo Bincio.', public: isPublic = false } = Astro.props;
|
||||
---
|
||||
<!doctype html>
|
||||
<html lang="en" data-theme="dark">
|
||||
@@ -132,7 +131,7 @@ const { title = 'BincioWiki', description = 'La memoria collettiva del gruppo Bi
|
||||
<a href="/" class="font-bold text-white tracking-tight hover:text-[color:var(--accent)] transition-colors shrink-0">
|
||||
Bincio<span style="color: var(--accent)">Wiki</span>
|
||||
</a>
|
||||
{!slim && (
|
||||
{!isPublic && (
|
||||
<div class="flex items-center gap-5 flex-1 min-w-0 overflow-x-auto" style="scrollbar-width:none">
|
||||
<a href="/" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Home</a>
|
||||
<a href="/entries" class="text-sm text-zinc-400 hover:text-white transition-colors shrink-0">Pages</a>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import Base from '../../layouts/Base.astro';
|
||||
---
|
||||
|
||||
<Base title="Accedi — BincioWiki" public={true} slim={true}>
|
||||
<Base title="Accedi — BincioWiki" public={true}>
|
||||
<div class="max-w-sm mx-auto mt-16">
|
||||
<h1 class="text-2xl font-bold mb-8 text-center" style="color: var(--text-primary)">
|
||||
Bincio<span style="color: var(--accent)">Wiki</span>
|
||||
|
||||
Reference in New Issue
Block a user