M2: 主题系统(sablog经典+modern简约)+ 前台全部页面 + 老 URL 301 兼容 + markdown 双份导入

This commit is contained in:
ak
2026-08-11 17:58:29 +08:00
parent f16bb75538
commit 6214976a88
66 changed files with 2763 additions and 10 deletions
@@ -0,0 +1,8 @@
<footer class="m-footer">
<div class="m-container">
<p>&copy; {{ date('Y') }} {{ $siteName }}
@if($siteIcp)<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">{{ $siteIcp }}</a>@endif
</p>
<p>LaraLog · Markdown 书写,用 AI 审核</p>
</div>
</footer>
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ $pageTitle ?? $siteName }}</title>
<meta name="description" content="{{ $pageDescription ?? $siteDescription }}">
@if(($pageKeywords ?? '') !== '')
<meta name="keywords" content="{{ $pageKeywords }}">
@endif
<meta name="generator" content="LaraLog">
<link rel="canonical" href="{{ url()->current() }}">
<link rel="alternate" type="application/rss+xml" title="{{ $siteName }}" href="{{ route('feed.rss') }}">
<link rel="stylesheet" href="{{ theme('asset', 'style.css') }}">
@stack('head')
</head>
@@ -0,0 +1,20 @@
<header class="m-header">
<div class="m-container">
<a href="{{ route('home') }}" class="m-logo">{{ $siteName }}</a>
<nav class="m-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>
@auth
<a href="{{ route('profile') }}">{{ auth()->user()->name }}</a>
<form action="{{ route('logout') }}" method="post" class="inline-form">
@csrf
<button type="submit" class="m-link-btn">退出</button>
</form>
@else
<a href="{{ route('login') }}">登录</a>
@endauth
</nav>
</div>
</header>