feat: 主题内容注入点系统(10 个标准位置,同位置多条注入块可排序/启停,stylevar 变量复活)+ 后台主题注入管理页(Tab 分区)+ 缓存/设置收进顶部用户下拉菜单(Livewire action 即时通知)

This commit is contained in:
ak
2026-08-11 23:20:57 +08:00
parent e91675e172
commit 3e3b9a2bfd
98 changed files with 485 additions and 105 deletions
+1
View File
@@ -21,5 +21,6 @@
@include('partials.sidebar')
</div>{{-- #page --}}
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>
+1
View File
@@ -19,5 +19,6 @@
@include('partials.sidebar')
</div>{{-- #page --}}
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>
@@ -1,3 +1,4 @@
@stack('theme:footer')
<div id="footer">
<p>&copy; {{ date('Y') }} {{ $siteName }}
@if($siteIcp)<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">{{ $siteIcp }}</a>@endif
@@ -14,4 +14,5 @@
<link rel="alternate" type="application/rss+xml" title="{{ $siteName }}" href="{{ route('feed.rss') }}">
<link rel="stylesheet" href="{{ theme('asset', 'style.css') }}">
@stack('head')
@stack('theme:head')
</head>
@@ -4,6 +4,7 @@
<a href="{{ route('home') }}">{{ $siteName }}</a>
<p class="description">{{ $siteDescription }}</p>
</div>
@stack('theme:header')
<div id="nav">
<ul>
<li class="{{ request()->routeIs('home') ? 'current_page_item' : '' }}"><a href="{{ route('home') }}">首页</a></li>
@@ -1,4 +1,5 @@
<div class="sidebar">
@stack('theme:sidebar_top')
<div class="searchbox">
<form action="{{ route('search') }}" method="get">
<input type="search" name="q" value="{{ request('q', request('keyword', '')) }}" placeholder="搜索文章">
@@ -69,4 +70,5 @@
<li>标签 {{ $blogStats['tags'] }} </li>
</ul>
</div>
</div>
@stack('theme:sidebar_bottom')

+1
View File
@@ -21,5 +21,6 @@
@include('partials.sidebar')
</div>{{-- #page --}}
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>
+4 -1
View File
@@ -29,9 +29,11 @@
<span>· 阅读 {{ $post->views }}</span>
</div>
<div class="post-content">
@stack('theme:post_content_top')
<div class="post-content">
{!! $contentHtml !!}
</div>
@stack('theme:post_content_bottom')
@if($post->tags->isNotEmpty())
<div class="post-tags">
@@ -86,5 +88,6 @@
</div>{{-- #page --}}
@include('partials.footer')
<script>fetch("{{ route('track-view', $post) }}")</script>
@stack('theme:body_end')
</body>
</html>
+1
View File
@@ -17,5 +17,6 @@
@include('partials.sidebar')
</div>{{-- #page --}}
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>