# WeHalo **Repository Path**: aquanrun/WeHalo ## Basic Information - **Project Name**: WeHalo - **Description**: WeHalo 简约风 的微信小程序版博客 - **Primary Language**: JavaScript - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 927 - **Forks**: 246 - **Created**: 2018-12-09 - **Last Updated**: 2025-05-29 ## Categories & Tags **Categories**: weixin-lapp, blog **Tags**: None ## README [![](https://raw.githubusercontent.com/aquanlerou/WeHalo/master/image/wehalo.jpg)](https://github.com/aquanlerou/WeHalo) ## WeHalo 支持最新版本 Halo 大家的支持,鼓励,认可,是我坚持开源的动力,虽然后面开发完有点拖拉,请原谅 ~ 渲染图在设计中 后续更多功能开发并开发给大家使用,新版本 **WeHalo** 会存在不少问题欢迎大家多给我提 **Issues** 我会尽快处理 新版本使用的问题不懂可以通过小程序联系作者找到我或者添加``QQ交流群: 260050047 / 559856207`` > ✍ Halo 一款现代化的个人独立博客系统 [Halo](https://halo.run) [![Github](https://img.shields.io/badge/Author-Aquan-FF4500.svg?style=flat-square)](https://github.com/aquanlerou) [![GitHub release](https://img.shields.io/github/release/aquanlerou/WeHalo.svg?style=flat-square)](https://github.com/aquanlerou/WeHalo/releases) [![](https://img.shields.io/github/languages/code-size/aquanlerou/WeHalo.svg?style=flat-square)](https://github.com/aquanlerou/WeHalo) [![GitHub LICENSE](https://img.shields.io/github/license/aquanlerou/WeHalo.svg?style=flat-square)](https://github.com/aquanlerou/WeHalo/blob/master/LICENSE) [![star](https://img.shields.io/github/stars/aquanlerou/WeHalo.svg?label=Stars&style=social)](https://github.com/aquanlerou/WeHalo) [![star](https://gitee.com/aquanrun/WeHalo/badge/star.svg?theme=white)](https://gitee.com/aquanrun/WeHalo/stargazers) ------------------------------
目录 - [简介](#简介) - [快速开始](#快速开始) - [文档](#文档) - [演示](#演示) - [许可证](#许可证) - [后续功能](#后续功能) - [感谢](#感谢) - [捐赠](#捐赠)
## 简介 **WeHalo** [wiˈheɪloʊ],意为我们的光环,嘻嘻。 配合 [**Halo**](https://github.com/halo-dev/halo) 轻快,简洁,功能强大的博客系统而开发出来的 **简约风** 微信小程序版博客 > QQ交流群: 260050047 / 559856207 ## 快速开始 **注:开源不易请留 WeHalo 底部署名不要删除** ```bash git clone https://github.com/aquanlerou/WeHalo.git ``` 代码下载后,把 **image** 文件夹删除(放的是README中的图片与项目无关),用小程序 IDE 打开后即可使用。 **注:请选择小程序项目,非小游戏,例子中无 appid,所以无法在手机上运行,如果需要真机调试,请在打开例子时,填上自己的小程序 id** ## 文档 修改``app.js``文件的全局变量,改为你的 **Halo** 博客的地址,请更新最新的 **Halo** 配合使用 **注:必须是HTTPS的因为,微信官方规定,还有把你的博客地址``如:https://aquan.run``和``https://v2.jinrishici.com``添加到微信公众平台的 ``request 合法域名``中** ``` globalData: { //全局变量 userInfo: null, skin: null, roleFlag: false, BlogName: "爱敲代码的猫",//博客名字 url: "https://aquan.run",//博客地址(需HTTPS) token: "",//Halo博客后台设置 highlightStyle: "dracula",//代码高亮样式,可用值default,darcula,dracula,tomorrow adminOpenid: "ogogn47AhczrMBgcTCPbUwugqLcU",//导入项目后可以在Console中看到 openidCloudResult: xxxxxxx (xxx就是adminOpenid) HaloUser: "xx",//Halo后台用户名 HaloPassword: "xx",//Halo后台密码 } ``` **注: 关于新版本 ``WeHalo`` 找不到 ``adminOpenid`` 的处理方法: ``https://gitee.com/aquanrun/WeHalo/issues/I12J1G``** 设置个人专属**Logo** 修改 ``WeHalo\miniprogram\colorui\main.wxss`` 文件最后面的 ``` .home-img{ padding: 24rpx; background-repeat: no-repeat; background-size: contain; /* background-image:url(../image/cat.png); */ background-image:url('xxxxx');//logo图片地址 } ``` html2wxml插件版本准备 > 1. 添加插件 ![添加小程序插件](https://www.qwqoffice.com/html2wxml/images/plugin-1.png "添加小程序插件") > 2. 搜索 `html2wxml` ,选中并添加 ![添加小程序插件](https://www.qwqoffice.com/html2wxml/images/plugin-2.png "添加小程序插件") > 3. 添加成功 ![添加小程序插件](https://www.qwqoffice.com/html2wxml/images/plugin-3.png "添加小程序插件") > 文档正在不断完善中,遇到问题请加群提问或者 [**Issues**](https://github.com/aquanlerou/WeHalo/issues) 等你吐槽... ## 演示 ![WeHalo](https://github.com/aquanlerou/WeHalo/blob/master/image/wx.png) #### [**更多演示**](https://github.com/aquanlerou/WeHalo/issues/53) ## 许可证 [![GitHub LICENSE](https://img.shields.io/github/license/aquanlerou/WeHalo.svg?style=flat-square)](https://github.com/aquanlerou/WeHalo/blob/master/LICENSE) > WeHalo使用GPL-v3.0协议开源,请尽量遵守开源协议,即便是在中国。 ## 功能 - [x] 重新设计**WeHalo** - [x] 自定义导航栏(个人觉得好看可自定义) - [x] 个人名片(可宣传自己) - [x] 博文展示 - [x] 评论展示 - [x] 搜索文章功能 - [x] 文章评论功能 - [x] 博主查看评论功能 - [x] 博主回复评论功能 - [x] 评论功能内容识别 - [x] 友链展示 - [x] 日记本 - [ ] 点赞功能(云函数) - [ ] 文章浏览统计功能(云函数) - [ ] 用户回复评论追评功能 - [ ] 生成海报(微信朋友圈装X) - [x] 图库展示([小熊随笔](https://www.xtyu.top/)贡献开发) - [x] 图库图片上传([小熊随笔](https://www.xtyu.top/)贡献开发) - [x] 短视频去水印([小熊随笔](https://www.xtyu.top/)贡献开发) - [x] 按类别导航([小熊随笔](https://www.xtyu.top/)贡献开发) - [x] 加密分类限制([小熊随笔](https://www.xtyu.top/)贡献开发) - [ ] 想到就写... ## 感谢 WeHalo的诞生离不开下面这些项目: - **[Halo](https://github.com/halo-dev/halo): 一个优秀的开源博客发布应用。** - **[ColorUI](https://github.com/weilanwl/ColorUI):鲜亮的高饱和色彩,专注视觉的小程序组件库** - **[iView Weapp](https://github.com/TalkingData/iview-weapp):一套高质量的微信小程序 UI 组件库** - **[Painter](https://github.com/Kujiale-Mobile/Painter):微信小程序生成图片库,绘制一张可以发到朋友圈的图片** - **[html2wxml](https://github.com/qwqoffice/html2wxml):用于微信小程序的HTML和Markdown格式的富文本渲染组件,支持代码高亮** - **[一言·古诗词](https://github.com/xenv/gushici):Hitokoto API,随机返回一条古诗词名句。采用 Vert.x + Redis 全异步开发,毫秒级稳定响应。** ## 捐赠 > 如果 **WeHalo** 帮到你在微信装 **X** ,可以众筹作者买哇哈哈(注:捐赠请备注WeHalo捐赠和名称哦) | 支付宝 | 微信 | | :------------: | :------------: | | | | ## 感谢以下捐赠者 > 作者会努力喝着你的哇哈哈敲代码的 ღ( ´・ᴗ・` )比心 | 日期 | 名称 | 方式 | 金额 | 留言 | | :------------: | :------------: | :------------: | :------------: | :------------: | | 2021-01-13 | L * o | 微信 | 10.00 | 感谢作者 秘银数媒 | | 2021-01-07 | * * 傲 | 支付宝 | 6.66 | 感谢分享! | | 2021-01-07 | * ? | 微信 | 8.88 | 不错!不错! | | 2020-12-10 | * | 微信 | 10.24 | 感谢开源 | | 2020-11-02 | * 。 | 微信 | 6.66 | 感谢开源,已经用上了 | | 2020-10-13 | * * 荣 | 支付宝 | 8.29 | 无留言 | | 2020-08-02 | * * 强 | 支付宝 | 5.23 | 感谢开源 | | 2020-07-16 | * 发 | 微信 | 20.48 | 挺好开源项目 | | 2020-07-16 | * * 华 | 支付宝 | 40 | 无留言 | | 2020-07-08 | * t | 微信 | 30.00 | WeHalo捐赠,靖少毅 | | 2020-06-19 | * 梁 | 微信 | 5.20 | WeHalo捐赠 by阿梁 | | 2020-06-02 | * . | 微信 | 8.88 | 大佬够稳,拿来用啦 | | 2020-05-31 | 山 * i | 微信 | 10.24 | 感谢分享,WeHalo | | 2020-05-15 | Z * Z | 微信 | 1.00 | 感谢大佬 | | 2020-04-30 | * * 原 | 支付宝 | 28.80 | 无留言 | | 2020-04-20 | * * 滨 | 支付宝 | 20 | 无留言 | | 2020-04-22 | 长安 | 微信 | 10.00 | 开源不易,感谢你 | | 2020-03-23 | l * 8 | 微信 | 5.00 | 无留言 | | 2020-03-17 | M * l | 微信 | 10.24 | 无留言 | | 2020-01-17 | * 放 | 微信 | 6.66 | 值得学习 | | 2020-01-08 | S * o | 微信 | 3.30 | WeHalo捐赠 By 五月 | | 2020-01-07 | * 海洋 | 支付宝 | 16.66 | WeHalo捐献 爱吸猫 | | 2020-01-01 | O * l | 微信 | 2.00 | 2020冲!感谢作者 | | 2019-11-28 | * 华 | 微信 | 10.24 | 无留言 | | 2019-11-27 | * 李 | 微信 | 10.24 | WeHalo捐赠,超级棒! | | 2019-10-16 | * 线 | 微信 | 16.60 | WeHalo捐赠,中轴线 | | 2019-10-15 | * 已 | 微信 | 10.00 | 无留言 | | 2019-10-14 | J * g | 微信 | 15.00 | 感谢感谢 | | 2019-10-08 | MaxWell | 微信 | 8.88 | 开源不易,继续努力。 | | 2019-10-04 | * 礼 | 微信 | 8.88 | 无留言 | | 2019-08-04 | * 海强 | 支付宝 | 8.88 | 开源辛苦 | | 2019-08-04 | * 杰 | 支付宝 | 6.66 | 无留言 | | 2019-06-21 | * 杰 | 支付宝 | 6.66 | 无留言 | | 2019-06-21 | W * e | 微信 | 20.00 | 好东西,感谢 | | 2019-06-08 | * x | 微信 | 10.01 | 感谢开源 | | 2019-05-08 | * 家 | 微信 | 5.20 | 支持开源 | | 2019-05-06 | L * n | 微信 | 10.00 | 产品简洁好用 | | 2019-04-28 | l * e | 微信 | 10.00 | 感谢开源 | | 2019-04-18 | I'm a joke | 微信 | 10.00 | 感谢开源 | | 2019-04-18 | 夏博 | 微信 | 5.20 | w r family~ | | 2019-04-18 | M | 微信 | 10.24 | 感谢开源 | | 2019-04-14 | J * D | 微信 | 10.24 | WeHalo捐赠 | | 2019-04-08 | * 呱 | 微信 | 10.24 | 感谢开源 | | 2019-03-31 | * 操 | 微信 | 20.48 | 感谢开源分享 | | 2019-03-18 | * 金 | 微信 | 30.00 | 开源交流 | | 2019-03-08 | * 桂 林 | 微信 | 1.00 | 无留言 | | 2019-02-27 | 黄 * i | 微信 | 1.00 | 无留言 | | 2019-02-11 | 。花 泽 类 、 | 微信 | 10.00 | 哇哈哈 | ## Stargazers over time [![Stargazers over time](https://starchart.cc/aquanlerou/WeHalo.svg)](https://starchart.cc/aquanlerou/WeHalo) ## Thanks to all the people who already contributed!