Files
laralog/themes/demo/views/partials/header.blade.php
T
goukiandCursor 36c4ffc5b4
Build and Deploy / verify (push) Successful in 37s
Build and Deploy / deploy (push) Successful in 38s
fix: restyle pager chips and restore theme ad slots
Replace the loose page-count label with a SaBlog-style 6 / 316 chip, wire inject/stylevar HTML into list and post views, and flush page cache when ads are saved.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 21:48:24 +00:00

27 lines
1.4 KiB
PHP

<header class="d-header">
<div class="d-container">
<a href="{{ route('home') }}" class="d-logo">{{ $siteName }}</a>
<nav class="d-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>
@include('partials.feed-links')
<form class="d-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="d-link-btn">退出</button>
</form>
@else
<a href="{{ route('login') }}">登录</a>
<a href="{{ route('register') }}">注册</a>
@endauth
</nav>
</div>
</header>
@include('partials.theme-inject', ['point' => 'header'])