feat: 主题内容注入点系统(10 个标准位置,同位置多条注入块可排序/启停,stylevar 变量复活)+ 后台主题注入管理页(Tab 分区)+ 缓存/设置收进顶部用户下拉菜单(Livewire action 即时通知)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
@stack('theme:footer')
|
||||
<footer class="m-footer">
|
||||
<div class="m-container">
|
||||
<p>© {{ date('Y') }} {{ $siteName }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -22,3 +22,4 @@
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
@stack('theme:header')
|
||||
|
||||
@@ -21,5 +21,6 @@
|
||||
@include('partials.sidebar')
|
||||
</div>{{-- #page --}}
|
||||
@include('partials.footer')
|
||||
@stack('theme:body_end')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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>© {{ 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')
|
||||
|
||||
@@ -21,5 +21,6 @@
|
||||
@include('partials.sidebar')
|
||||
</div>{{-- #page --}}
|
||||
@include('partials.footer')
|
||||
@stack('theme:body_end')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -17,5 +17,6 @@
|
||||
@include('partials.sidebar')
|
||||
</div>{{-- #page --}}
|
||||
@include('partials.footer')
|
||||
@stack('theme:body_end')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user