Files
laralog/themes/sablog/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

31 lines
1.6 KiB
PHP

<div id="outmain">
<header id="header">
<div class="logo">
<a href="{{ route('home') }}">{{ $siteName }}</a>
<p class="description">{{ $siteDescription }}</p>
</div>
@include('partials.theme-inject', ['point' => 'header'])
<nav id="nav">
<ul>
<li class="{{ request()->routeIs('home') ? 'current_page_item' : '' }}"><a href="{{ route('home') }}">首页</a></li>
<li class="{{ request()->routeIs('archives*') ? 'current_page_item' : '' }}"><a href="{{ route('archives') }}">归档</a></li>
<li class="{{ request()->routeIs('tags*') ? 'current_page_item' : '' }}"><a href="{{ route('tags') }}">标签</a></li>
<li class="{{ request()->routeIs('links') ? 'current_page_item' : '' }}"><a href="{{ route('links') }}">友链</a></li>
<li class="{{ request()->routeIs('comments') ? 'current_page_item' : '' }}"><a href="{{ route('comments') }}">评论</a></li>
@include('partials.feed-links', ['asList' => true])
@auth
<li><a href="{{ route('profile') }}">{{ auth()->user()->name }}</a></li>
<li>
<form action="{{ route('logout') }}" method="post" class="inline-form">
@csrf
<button type="submit" class="link-btn">退出</button>
</form>
</li>
@else
<li><a href="{{ route('login') }}">登录</a></li>
<li><a href="{{ route('register') }}">注册</a></li>
@endauth
</ul>
</nav>
</header>