diff --git a/CHANGELOG.md b/CHANGELOG.md index e39c017..b752d37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 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 `
`.
diff --git a/Fetures.md b/Fetures.md
index 2d93974..dd93cb7 100644
--- a/Fetures.md
+++ b/Fetures.md
@@ -61,11 +61,18 @@ See `README.md` and `docs/` for install, import, plugins, and themes.
## Pagination and imported HTML
-- Public pagers use `onEachSide(1)` plus “第 x / y 页”, and the main column is CSS grid `minmax(0, 1fr)` so page chips stay in the content column.
+- Public pagers use `onEachSide(1)` plus a compact `6 / 316` chip (old SaBlog `.p_bar` look), and the main column is CSS grid `minmax(0, 1fr)` so page chips stay in the content column.
- `SablogHtmlNormalizer` strips leftover ` `, turns SyntaxHighlighter `codeText` / `dp-*` lists into ``, and wraps stacked docker/shell `` lines.
- Render path always normalizes, so already-imported posts look right without rewriting the database. Persist with `php artisan sablog:fix-content --all`.
- Code blocks wrap / scroll inside the column instead of stretching the page.
+## Theme ads / inject
+
+- All list and post views include `content_top` / `content_bottom` (and post body) stacks. Saving **主题注入** flushes page cache.
+- Theme variables (old stylevars) render automatically: `ad_header` → header, leftover HTML vars such as `huangjinlian` → footer.
+- `sablog:import` now copies the old `stylevars` table into `theme_vars_{theme}`.
+- Do not add a third half-finished skin. Tighten `sablog` to match the old site; a new theme is a later, complete job.
+
## Media library (xpier)
- Package: `xpier/filament-media-library` (admin Media Library + MediaPicker).
diff --git a/README.md b/README.md
index 00ac229..015f67f 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,7 @@ php artisan sablog:fix-content --all
S3_ACCESS_KEY=... S3_BUCKET=... S3_ENDPOINT=... php artisan attachments:sync-s3 --legacy-dir=/path/to/old/attachments
```
-> 不迁移的过时功能:trackback(引用通告,垃圾来源)、搜索缓存表、验证码(由 AI 审核 + 蜜罐 + 频控取代)、WAP、广告位变量。
+> 不迁移的过时功能:trackback(引用通告,垃圾来源)、搜索缓存表、验证码(由 AI 审核 + 蜜罐 + 频控取代)、WAP。老广告位 `stylevars` 会导入为当前主题变量并在对应注入点显示。
## 主题
diff --git a/app/Blog/Support/ThemeInjector.php b/app/Blog/Support/ThemeInjector.php
index 5d72139..4cdf460 100644
--- a/app/Blog/Support/ThemeInjector.php
+++ b/app/Blog/Support/ThemeInjector.php
@@ -34,6 +34,24 @@ class ThemeInjector
'body_end' => '页面末尾(