[halo-dev/halo]2.4.2安装主题报错

2024-03-18 339 views
6
是什么版本出现了此问题?

2.4.2

使用的什么数据库?

H2

使用的哪种方式部署?

Docker

在线站点地址

No response

发生了什么?

拖主题zip到安装主题上传页面,提示:Theme Upgrade Error: Missing theme manifest file "theme.yaml" or "theme.yml".

相关日志输出
Theme Upgrade Error: Missing theme manifest file "theme.yaml" or "theme.yml".
附加信息

No response

回答

7

从日志来看,你上传 zip 文件没有包含 theme.yaml 配置文件,需要确认这是否是支持 Halo 的主题。

/kind support /triage needs-information

3

我一开始也这样以为,然后我解压了主题的压缩包,发现是有thenm.yaml文件的,接着我直接上传解压后的文件到服务器,文件路径:/root/.halo2/themes下面。 到console后台可以看到主题加载出来,但是启用之后报图三的问题,可能是主题的问题吧butterfly。(默认的主题是正常的,这是尝试换主题中遇到的问题) image image image

3

建议提供一下你上传的主题文件。

4

https://github.com/dhjddcn/halo-theme-butterfly/releases/download/v2.0.5/theme-butterfly-dist.zip

theme.yaml:

apiVersion: theme.halo.run/v1alpha1 kind: Theme metadata: name: theme-butterfly spec: displayName: Butterfly author: name: 小红 website: 'https://dhjdd.cn' description: '一个Halo博客主题,Butterfly ?' logo: 'https://halo.run/logo' website: 'https://dhjdd.cn' repo: 'https://github.com/dhjddcn/halo-theme-butterfly.git' settingName: theme-butterfly-setting configMapName: theme-butterfly-configMap version: 2.0.5 require: 2.0.0