图库页:
- 相册切换改为前端按 URL 的 group 参数完成(各相册瀑布流预渲染并标记 data-album),
不再依赖服务端的 group/photos 变量,从而不受页面静态缓存与插件版本差异影响,
彻底修复「点击相册后仍显示 /photos」的问题
- 移除已无用的分组 tag 切换器(全部相册 / 各分组计数)
- 封面固定 4:3 并 object-fit: cover 填满;相册内视图新增「返回全部相册」与相册标题
- 预览模式开关改为作用于全部相册瀑布流,并尊重全局灯箱开关
后台设置:
- 相册封面配置的「相册名称」文本框改为下拉选择,选项通过
/apis/console.api.photo.halo.run/v1alpha1/photogroups 自动获取已存在分组
(label=spec.displayName,value=metadata.name);模板匹配同步改为 metadata.name
修复:
- /tags 白屏:tags.html 在 ${...} 内嵌套 #{'tag.count'} 触发 EL1043E
(Expected 'identifier' but was 'lcurly({)'),改用 |...| 字面量替换
其他:新增 i18n photos.back;版本升至 0.3.0;README 同步
Co-Authored-By: WorkBuddy <noreply@workbuddy.ai>
44 lines
1.6 KiB
YAML
44 lines
1.6 KiB
YAML
apiVersion: theme.halo.run/v1alpha1
|
|
kind: Theme
|
|
metadata:
|
|
name: whitespace
|
|
spec:
|
|
displayName: Whitespace 留白
|
|
author:
|
|
name: 暖心向阳335
|
|
website: https://git.nxxy335.top/nxxy335
|
|
description: 一款极简单栏博客主题,移植自 Typecho 主题 whitespace 留白,支持亮暗双主题、搜索与丰富的归档能力,并适配 moments/photos/links/weread 等插件。
|
|
logo: ""
|
|
homepage: https://git.nxxy335.top/nxxy335/halo-theme-whitespace
|
|
repo: https://git.nxxy335.top/nxxy335/halo-theme-whitespace.git
|
|
issues: https://git.nxxy335.top/nxxy335/halo-theme-whitespace/issues
|
|
settingName: "whitespace-setting"
|
|
configMapName: "whitespace-configMap"
|
|
version: 0.3.0
|
|
requires: ">=2.26.0"
|
|
license:
|
|
- name: "GPL-3.0"
|
|
url: "https://github.com/halo-dev/theme-vite-starter/blob/main/LICENSE"
|
|
customTemplates:
|
|
page:
|
|
- name: 关于页面
|
|
description: 关于页面布局,展示头像、个人简介与社交链接
|
|
screenshot:
|
|
file: page_about.html
|
|
- name: 微信读书页面
|
|
description: 适配 halo-weread-plugin,展示微信读书书架与读书笔记
|
|
screenshot:
|
|
file: weread.html
|
|
- name: 留言板页面
|
|
description: 以评论区作为留言板的单页模板
|
|
screenshot:
|
|
file: page_guestbook.html
|
|
- name: 链接订阅页面
|
|
description: 适配 plugin-links 的 RSS 订阅动态聚合页
|
|
screenshot:
|
|
file: links-subscribe.html
|
|
- name: 豆瓣页面
|
|
description: 适配 plugin-douban(豆瓣/追番)的主题页面,按收藏状态展示条目
|
|
screenshot:
|
|
file: douban.html
|