<header class="site-header">
    <div class="container">
        <div class="site-brand">
            <a href="{{ route('home') }}" class="site-title">{{ $siteName }}</a>
            @if($siteDescription)
                <p class="site-desc">{{ $siteDescription }}</p>
            @endif
        </div>
        <nav class="site-nav">
            <a href="{{ route('home') }}" class="{{ request()->routeIs('home') ? 'active' : '' }}">首页</a>
            <a href="{{ route('archives') }}" class="{{ request()->routeIs('archives*') ? 'active' : '' }}">归档</a>
            <a href="{{ route('tags') }}" class="{{ request()->routeIs('tags*') ? 'active' : '' }}">标签</a>
            <a href="{{ route('links') }}" class="{{ request()->routeIs('links') ? 'active' : '' }}">友链</a>
            <a href="{{ route('comments') }}" class="{{ request()->routeIs('comments') ? 'active' : '' }}">评论</a>
            <form class="site-search" action="{{ route('search') }}" method="get">
                <input type="search" name="q" placeholder="搜索..." value="{{ request('q', request('keyword', '')) }}">
            </form>
            @auth
                <a href="{{ route('profile') }}">{{ auth()->user()->name }}</a>
                <form action="{{ route('logout') }}" method="post" class="inline-form">
                    @csrf
                    <button type="submit" class="link-btn">退出</button>
                </form>
            @else
                <a href="{{ route('login') }}">登录</a>
                <a href="{{ route('register') }}">注册</a>
            @endauth
        </nav>
    </div>
</header>
@stack('theme:header')
