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:
@@ -1,5 +1,25 @@
|
||||
# Changelog
|
||||
|
||||
## 2026-09-18
|
||||
|
||||
- Homepage / lists have SaBlog-style **标准 | 列表** browse modes (`home_view_mode`, `?view=`, cookie).
|
||||
- Pagination is compact (`第 x / y 页` + fewer page chips) and the content column uses CSS grid so it no longer sits under the sidebar.
|
||||
- Imported SaBlog HTML no longer shows literal ` `; highlighter / stacked docker `<div>` blocks become wrapped `<pre><code>`.
|
||||
- `php artisan sablog:fix-content --all` can persist that cleanup. Code no longer stretches the page.
|
||||
- Schema snapshot: `docs/database/mysql-schema-20260918-211824.sql`.
|
||||
- Frontend RSS / Sitemap / llms.txt links now open in a new tab.
|
||||
- `/llms.txt` is a core live route (plus `/posts/{slug}.md`) so agents can crawl new public posts without a static file.
|
||||
- Fixed edit-post crash: comments relation manager now uses Filament v5 `Filament\Actions\Action`.
|
||||
- Posts now have sticky levels 0–3 (none / light / strong / headline). Headline always stays at the top of public lists.
|
||||
- Edit and list screens have a **预览** button; admin/editor can open unpublished posts on the public site.
|
||||
- Admin top bar **网站** opens the frontend in a new tab. Sidebar **管理** now has **页面缓存** and **语言**.
|
||||
- Schema snapshot: `docs/database/mysql-schema-20260918-205818.sql`.
|
||||
- Post create/edit form is now left content 2 : right tools 1, locked for PC at every breakpoint (not only `lg`).
|
||||
- Slug is full width; category, format, and status share one row as single-choice buttons; cover sits above the taller body editor.
|
||||
- Right column: publish settings, then access settings (password + membership price fields).
|
||||
- Cover / media picker preview is a small thumbnail (max 220×124), not full column width.
|
||||
- Schema snapshot: `docs/database/mysql-schema-20260918-203827.sql`.
|
||||
|
||||
## 2026-09-17
|
||||
|
||||
- Admin top-right now shows the current environment (`local` / `prod`) and a **写文章** shortcut to create a post.
|
||||
|
||||
Reference in New Issue
Block a user