feat: restore sablog browse modes and clean imported HTML
Keep the public site readable after import (nbsp, highlighter, wrapping code, compact pager) and finish the admin extras already in this tree: sticky levels, preview, page cache, and live llms.txt. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
<div class="alert alert-error">{{ session('error') }}</div>
|
||||
@endif
|
||||
|
||||
@include('partials.view-mode-switcher')
|
||||
|
||||
@forelse($posts as $post)
|
||||
@include('partials.post-card', ['post' => $post])
|
||||
@empty
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
@endif
|
||||
|
||||
|
||||
@include('partials.view-mode-switcher')
|
||||
|
||||
@forelse($posts as $post)
|
||||
@include('partials.post-card', ['post' => $post])
|
||||
@empty
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<p>© {{ date('Y') }} {{ $siteName }}
|
||||
@if($siteIcp)<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">{{ $siteIcp }}</a>@endif
|
||||
</p>
|
||||
<p>@include('partials.feed-links')</p>
|
||||
<p>Powered by LaraLog · Laravel · Filament</p>
|
||||
</footer>
|
||||
</div>{{-- #outmain --}}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<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="alternate" type="text/plain" title="llms.txt" href="{{ route('feed.llms') }}">
|
||||
<link rel="stylesheet" href="{{ theme('asset', 'style.css') }}">
|
||||
@stack('head')
|
||||
@stack('theme:head')
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<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>
|
||||
<li><a href="{{ route('feed.rss') }}">RSS</a></li>
|
||||
@include('partials.feed-links', ['asList' => true])
|
||||
@auth
|
||||
<li><a href="{{ route('profile') }}">{{ auth()->user()->name }}</a></li>
|
||||
<li>
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
<button type="submit" class="btn">搜索</button>
|
||||
</form>
|
||||
|
||||
@include('partials.view-mode-switcher')
|
||||
|
||||
@forelse($posts as $post)
|
||||
@include('partials.post-card', ['post' => $post])
|
||||
@empty
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
@if(session('error'))
|
||||
<div class="alert alert-error">{{ session('error') }}</div>
|
||||
@endif
|
||||
@include('partials.post-preview-banner')
|
||||
|
||||
<article class="post-full">
|
||||
@if(! empty($toc))
|
||||
@@ -35,7 +36,11 @@
|
||||
@endif
|
||||
<h1 class="post-title">{{ $post->title }}</h1>
|
||||
<div class="post-meta">
|
||||
<time datetime="{{ $post->published_at->toIso8601String() }}">{{ $post->published_at->format(blog_setting('normaltime', 'Y-m-d H:i')) }}</time>
|
||||
@if($post->published_at)
|
||||
<time datetime="{{ $post->published_at->toIso8601String() }}">{{ $post->published_at->format(blog_setting('normaltime', 'Y-m-d H:i')) }}</time>
|
||||
@else
|
||||
<span>未发布</span>
|
||||
@endif
|
||||
@if($post->author)<span>· {{ $post->author->name }}</span>@endif
|
||||
@if($post->category)
|
||||
<span>· <a href="{{ route('category.show', $post->category->id) }}">{{ $post->category->name }}</a></span>
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
<main id="content">
|
||||
<h1 class="list-title">标签:{{ $tag->name }}</h1>
|
||||
|
||||
@include('partials.view-mode-switcher')
|
||||
|
||||
@forelse($posts as $post)
|
||||
@include('partials.post-card', ['post' => $post])
|
||||
@empty
|
||||
|
||||
Reference in New Issue
Block a user