
# LanternTown Xiuno Theme
LanternTown Xiuno Theme 是一款报纸复古风 Xiuno 主题,改编自 LanternTown 的视觉语言,使用米色纸张纹理、粗黑分隔线、大字号标题、三栏文章栅格和灰度封面图,适合偏博客、资讯、文章型社区。
## 主题特点
- 适配 Xiuno 4.x 插件主题结构。
- 覆盖首页、板块页、帖子列表、帖子详情、回复列表、顶部导航和底部导航。
- 首页采用经典报纸版式,桌面端三栏展示,移动端自动单栏。
- 帖子详情页强调阅读体验,保留 Xiuno 原生回复、编辑、删除、快速回复等能力。
- 使用本地纸张纹理和默认封面图,无需依赖外部资源。
- 已删除原 Typecho 主题文件,仅保留 Xiuno 主题所需结构。
## 文件结构
```text
xn_LanternTown_theme/
├── conf.json
├── install.php
├── unstall.php
├── icon.png
├── screenshot.png
├── 主题简介.md
├── css/
│ ├── lanterntown.css
│ ├── paper_fibers.png
│ └── blog_bg.jpg
├── js/
│ └── lanterntown.js
├── hook/
│ ├── header_link_after.htm
│ └── footer_js_after.htm
└── overwrite/
└── view/
└── htm/
├── header_nav.inc.htm
├── footer_nav.inc.htm
├── index.htm
├── forum.htm
├── thread_list.inc.htm
├── thread.htm
└── post_list.inc.htm
```
## 安装启用
将 `xn_LanternTown_theme` 放入 Xiuno 的 `plugin` 目录,然后进入后台插件管理启用即可。
如果启用后页面仍显示旧样式,请清理浏览器缓存,或确认 `conf.json` 中插件状态为启用。
## 兼容说明
主题保留 Xiuno 原生 hook 点和常用变量,便于继续兼容发帖、回帖、附件、分页、管理操作等核心功能。
已使用 phpstudy 的 PHP 7.3 对模板文件进行语法检查。