# Changelog ## 2026-09-21 - Logged-in admin/editor see a header **管理** link that opens `/admin` in a new tab. - Schema snapshot: `docs/database/mysql-schema-20260921-233554.sql`. ## 2026-09-18 - Pager chip is now `6 / 316` in the old SaBlog bar style, not a loose “第 x / y 页” label. - Theme inject stacks cover list/content/footer; stylevars and leftover HTML ads render. Saving inject flushes page cache. `sablog:import` copies `stylevars`. - Schema snapshot: `docs/database/mysql-schema-20260918-214145.sql`. - 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 `
` blocks become wrapped `
`.
- `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.
- Tightened Filament sidebar vertical spacing (correct `fi-sidebar-item-btn` selectors + smaller group gaps).
- Hello World plugin: enable runs plugin migrations; missing `hello_world_logs` no longer 500s the demo page; plugin boot/hooks are isolated.

## 2026-09-16

- Switched new attachments/covers to `xpier/filament-media-library`.
- Markdown body now inserts `![alt](media:ID)` (files: `[name](media:ID)`); URLs are resolved at render time. Legacy sablog attach tokens are unchanged.
- Schema snapshot: `docs/database/mysql-schema-20260916-131822.sql`.

## 2026-09-07

- Synced this repository from Gitea to local Herd for development (`http://laralog.test`).
- Local schema snapshot: `docs/database/schema-20260907-223917.sql`.