# 支持远程安装主题和插件，Halo 2.6.0 发布

原文：<https://www.halo.run/archives/halo-260-released>

Halo 是一款强大易用的开源建站工具，它让你无需太多的技术知识就可以快速搭建一个博客、网站或者内容管理系统。具备可插拔架构、主题套用富文本编辑器等多重特性，支持用户根据自己的喜好选择不同类型的插件及主题模板来定制化自己的站点功能及外观。让内容创作和发布更加便捷生动。

截至目前（2023 年 Q2 季度），Halo 已经在 Docker Hub 获得了超过 170 万次下载，GitHub Star 数突破 27 k，并拥有一百多名社区贡献者。

2023 年 6 月 1 日，强大易用的开源建站工具 Halo 正式发布 2.6.0 版本。

在这个版本中，Halo 主要支持了远程安装和升级主题或插件，同时 Halo 官方的应用市场也已经升级，支持通过输入站点地址来安装主题或者插件到你的 Halo 站点。

## 亮点更新

### 远程安装主题和插件

在 Halo 2.6.0 版本中，我们添加了远程安装和升级主题或插件的功能，可以通过一个符合条件的地址直接安装到 Halo，同时也支持升级。

![install-theme-via-remote.png](https://www.halo.run/upload/install-theme-via-remote.png)

同时，为了让这个功能获得更好的使用体验，Halo 官方的应用市场也已经支持输入站点地址来安装主题或者插件到你的 Halo 站点，以下是演示视频：

### 支持预览文章

在 Halo 2.6.0 版本中，我们回归了 1.x 版本的文章预览功能，支持在编写文章或者页面的时候预览最终发布的效果，以下是演示视频：

## 完整更新日志

### 新特性

-   新增文章和自定义页面预览功能。 by @guqing in [https://github.com/halo-dev/halo/pull/3983](https://github.com/halo-dev/halo/pull/3983)
    
-   支持通过 URI 远程安装和升级插件。 by @guqing in [https://github.com/halo-dev/halo/pull/3963](https://github.com/halo-dev/halo/pull/3963)
    
-   支持通过 URI 远程安装和升级主题。 by @guqing in [https://github.com/halo-dev/halo/pull/3939](https://github.com/halo-dev/halo/pull/3939)
    

### 功能优化

-   修改 Console 的路由模式为 HTML5 模式。 by @ruibaby in [https://github.com/halo-dev/halo/pull/4005](https://github.com/halo-dev/halo/pull/4005)
    
-   优化插件安装失败的提示信息。 by @guqing in [https://github.com/halo-dev/halo/pull/3993](https://github.com/halo-dev/halo/pull/3993)
    
-   Console 端的登录页面支持登录之后重定向到某个站内链接。 by @ruibaby in [https://github.com/halo-dev/halo/pull/3989](https://github.com/halo-dev/halo/pull/3989)
    
-   优化 Console 端文章分类和标签选择器通过关键词搜索之后选择的逻辑。 by @zjy4fun in [https://github.com/halo-dev/halo/pull/3978](https://github.com/halo-dev/halo/pull/3978)
    
-   Console 端支持安装已存在主题时提示升级主题。 by @ruibaby in [https://github.com/halo-dev/halo/pull/3970](https://github.com/halo-dev/halo/pull/3970)
    
-   重构排序参数以统一自定义 API 的风格。 by @guqing in [https://github.com/halo-dev/halo/pull/3956](https://github.com/halo-dev/halo/pull/3956)
    
-   重构 Console 插件管理的异常状态显示。 by @ruibaby in [https://github.com/halo-dev/halo/pull/3945](https://github.com/halo-dev/halo/pull/3945)
    
-   对客户端评论及回复列表接口进行脱敏处理。 by @LIlGG in [https://github.com/halo-dev/halo/pull/3936](https://github.com/halo-dev/halo/pull/3936)
    
-   优化 Console 端部分数据列表的可访问性。 by @ruibaby in [https://github.com/halo-dev/halo/pull/3919](https://github.com/halo-dev/halo/pull/3919)
    
-   支持系统初始化检查，如果未初始化则重定向到控制台。 by @guqing in [https://github.com/halo-dev/halo/pull/3892](https://github.com/halo-dev/halo/pull/3892)
    

### 问题修复

-   修复长时间删除插件失败的问题。 by @JohnNiang in [https://github.com/halo-dev/halo/pull/4002](https://github.com/halo-dev/halo/pull/4002)
    
-   修复 Console 端 Dialog 对话框组件中的文字内容可能会溢出容器的问题。 by @ruibaby in [https://github.com/halo-dev/halo/pull/4007](https://github.com/halo-dev/halo/pull/4007)
    
-   修复页面别名包含特殊字符导致无法访问的问题。 by @JohnNiang in [https://github.com/halo-dev/halo/pull/4013](https://github.com/halo-dev/halo/pull/4013)
    
-   修复 Console 端插件详情中的协议出现两次相同内容的问题。 by @zjy4fun in [https://github.com/halo-dev/halo/pull/3977](https://github.com/halo-dev/halo/pull/3977)
    
-   修复 Console 端认证方式列表无法使用搜索的问题。 by @JustinLiang522 in [https://github.com/halo-dev/halo/pull/3974](https://github.com/halo-dev/halo/pull/3974)
    
-   修复没有主题管理权限时，进入主题功能页面报错的问题。 by @LIlGG in [https://github.com/halo-dev/halo/pull/3938](https://github.com/halo-dev/halo/pull/3938)
    
-   修复在 Windows 系统无法启动插件的问题。 by @guqing in [https://github.com/halo-dev/halo/pull/3925](https://github.com/halo-dev/halo/pull/3925)
    
-   修复主题模板中 site.url 解析有误的问题。 by @JohnNiang in [https://github.com/halo-dev/halo/pull/3910](https://github.com/halo-dev/halo/pull/3910)
    
-   解决访问页面无法渲染的问题。 by @JohnNiang in [https://github.com/halo-dev/halo/pull/3909](https://github.com/halo-dev/halo/pull/3909)
    
-   修复在初始化时，预设插件可能初始化失败的问题。 by @ruibaby in [https://github.com/halo-dev/halo/pull/3894](https://github.com/halo-dev/halo/pull/3894)
    
-   修复删除某个插件项导致其他插件 Logo 渲染失败的问题。 by @zjy4fun in [https://github.com/halo-dev/halo/pull/3888](https://github.com/halo-dev/halo/pull/3888)
    
-   修复创建用户或者修改用户资料时，头像链接不支持相对链接的问题。 by @ruibaby in [https://github.com/halo-dev/halo/pull/3880](https://github.com/halo-dev/halo/pull/3880)
    
-   修复部分 FormKit 的 radio 表单项的 label 设置不正确的问题。 by @ruibaby in [https://github.com/halo-dev/halo/pull/3878](https://github.com/halo-dev/halo/pull/3878)
    
-   修复依然能搜索到已删除文章的问题。 by @JohnNiang in [https://github.com/halo-dev/halo/pull/3877](https://github.com/halo-dev/halo/pull/3877)
    

### 依赖更新

-   升级 Spring Boot 至 3.1.0。 by @JohnNiang in [https://github.com/halo-dev/halo/pull/3996](https://github.com/halo-dev/halo/pull/3996)
    
-   替换 R2DBC MySQL 驱动为 `io.asyncer:r2dbc-mysql`。 by @JohnNiang in [https://github.com/halo-dev/halo/pull/3918](https://github.com/halo-dev/halo/pull/3918)
    

### 开发者相关

-   Console 端的 FormKit Repeater 输入框支持 min 和 max 参数用于限制项目数量。 by @ruibaby in [https://github.com/halo-dev/halo/pull/3965](https://github.com/halo-dev/halo/pull/3965)
