init
This commit is contained in:
22
web10/resources/views/partials/header.blade.php
Normal file
22
web10/resources/views/partials/header.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<header class="topbar">
|
||||
<div class="brand">
|
||||
<a href="{{ route('home') }}" class="brand-link">
|
||||
@if($siteLogo)
|
||||
<img src="{{ $siteLogo }}" alt="{{ $siteTitle }}" class="brand-logo">
|
||||
@else
|
||||
<span class="brand-text">{{ $siteTitle }}</span>
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
<nav class="topnav">
|
||||
<a href="{{ route('home') }}">首页</a>
|
||||
<a href="{{ route('categories.index') }}">分类</a>
|
||||
<a href="{{ route('articles.index') }}">文章</a>
|
||||
<a href="{{ route('about') }}">关于</a>
|
||||
</nav>
|
||||
<div class="topbar-actions">
|
||||
<button type="button" class="theme-toggle" id="theme-toggle" aria-label="切换主题">
|
||||
<span class="theme-icon">☾</span>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user