{"id":16989270,"url":"https://github.com/devhoangkien/blog-halo","last_synced_at":"2025-03-22T03:09:34.485Z","repository":{"id":128762893,"uuid":"367229246","full_name":"devhoangkien/blog-halo","owner":"devhoangkien","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-14T02:38:01.000Z","size":1158,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T21:28:01.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devhoangkien.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-14T02:35:25.000Z","updated_at":"2021-05-14T02:38:14.000Z","dependencies_parsed_at":"2023-04-25T02:23:00.231Z","dependency_job_id":null,"html_url":"https://github.com/devhoangkien/blog-halo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devhoangkien%2Fblog-halo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devhoangkien%2Fblog-halo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devhoangkien%2Fblog-halo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devhoangkien%2Fblog-halo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devhoangkien","download_url":"https://codeload.github.com/devhoangkien/blog-halo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898446,"owners_count":20528341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T03:05:56.533Z","updated_at":"2025-03-22T03:09:34.480Z","avatar_url":"https://github.com/devhoangkien.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 介绍\n\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://gitee.com/fuzui/GBlog-wx/badge/star.svg?theme=dark\" alt=\"Build Status\"\u003e\n \u003cimg src=\"https://img.shields.io/github/stars/fuzui/GBlog-wx.svg?style=social\" alt=\"Build Status\"\u003e\n \u003cimg src=\"https://img.shields.io/badge/halo-1.4.8-brightgreen\" alt=\"Build Status\"\u003e\n\u003c/p\u003e\n\n\n\n\nGBlog-wx：微信小程序博客\n\n\u003e 我们只是搬运工，将color-ui样式与halo接口结合了一下。\n\n[halo](https://halo.run)作为后台，小程序样式采用[color-ui组件](https://www.color-ui.com/)。\n\n### 一、展示\n\n![展示图](https://cdn.fuzui.net/blog/view.png)\n\n![](https://oss.fuzui.net/img/20200529022512.png)\n\n![](https://oss.fuzui.net/img/gblogadmin.png)\n\n### 二、在线体验\n\n![qrcode](https://cdn.fuzui.net/blog/qrcode_1588864925914.png)\n\n### 三、说明\n\n本项目采用[halo](https://halu.run)作为后台，调用halo接口。小程序样式使用[color-ui组件](https://www.color-ui.com/)组件。\n\n### 四、使用\n\n#### 1.后台搭建\n\n采用halo搭建，具体可查看halo文档：https://halo.run\n\n#### 2.小程序导入\n\n* 拉取代码\n\n  ```shell\n  git clone git@github.com:fuzui/GBlog-wx.git\n  ```\n\n* 导入工具\n\n  通过[微信公众平台](https://mp.weixin.qq.com/)注册小程序账号，登录后在`开发——开发设置`中查看AppID；\n\n  下载微信开发者工具，选择`小程序——导入项目`，选择刚刚clone的文件夹并填写自己的AppID.\n\n  ![1](https://cdn.fuzui.net/blog/1_1588866821272.png)\n\n* 配置\n\n  将`config`中有个`api-tmp.js`文件重命名为`api.js`。\n\n  修改如下配置：\n\n  ```javascript\n  const ApiBaseUrl = '';//生产上\n  const Config = {\n    AccessKey: '',\n    guestbookSheetId: 2\n  }\n  ```\n  \n  1.`ApiBaseUrl`为halo后台地址，上线必须为域名，在开发者工具中可点击`右上角详情——本地设置`，将不校验合法域名打勾。\n  \n  2.`AccessKey`为halo api的AccessKey。进入halo后台管理系统，在`系统——博客设置——高级选项——API设置`中，将API 服务开启，并设置Access key。将此Access key填入上述js文件中对应位置。\n  \n  ![123](https://cdn.fuzui.net/blog/123_1588867938268.png)\n  \n  3.`guestbookSheetId`该值是留言板页面id，默认为关于页的评论，可自行前往表结构中查看。（默认2）\n\n\n\n* 配置合法域名\n\n  在[微信公众平台](https://mp.weixin.qq.com/)中，`开发——开发设置——服务器域名`中添加request、uploadFile、downloadFile合法域名。将上述`ApiBaseUrl`域名添加到request合法域名，例如`www.geekera.com`。\n\n  ![](https://oss.fuzui.net/img/20200529020312.png)\n\n  ![](https://oss.fuzui.net/img/20200628014304.png)\n\n* 设置小程序最低基础库版本要求\n\n  在[微信公众平台](https://mp.weixin.qq.com/)中，`设置 - 基本设置 - 基础库最低版本设置`进行配置，保存为2.10.4版本。\n\n  \u003e 原因：[《小程序登录、用户信息相关接口调整说明》](https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801)\n\n  ![](https://oss.fuzui.net/img/20210326002230.png)\n\n#### 3.高级功能配置(非必须)\n\n* 海报分享\n\n  [开启文章分享海报功能](https://docs.geekera.cn/gblog-wx/posters-share.html)\n\n* \u003cs\u003e文章订阅、评论通知\u003c/s\u003e\n\n  [订阅消息（仅h1.4.2版本）](https://docs.geekera.cn/gblog-wx/subscribe.html)\n\n  \u003e 等待改版中···\n\n* 自定义样式\n\n  [自定义文章、顶图、随机图等样式](https://docs.geekera.cn/gblog-wx/custom-style.html)\n\n### 五、结构\n\n```\nGBLOG-WX     \n├── cloudfunctions      // 云服务\n├── components          // 自定义组件\n│       └── article-list     // 文章列表\n│       └── authorize        // 微信登录\n│       └── comment          // 评论列表\n│       └── painter          // painter小程序生成图片组件\n│       └── mp-weixin        // mp-html小程序富文本组件\n├── config               // 配置文件\n├── custom-tab-bar       // 自定义tabbar\n├── images               // 图片\n├── pages                // 页面代码\n├── services             // 封装方法\n│       └── api              // 接口实现\n│       └── const-data       // 常量\n│       └── posters          // 海报样式\n├── styles               // 样式\n│       └── colorui          // color-ui组件库 \n├── utils                // 公用js\n\n```\n\n### 六、功能\n\n**浏览页面功能：**\n\n* 文章浏览、评论、点赞、搜索\n* 文章分类、标签、归档\n* 光影照片\n* 日记\n* 留言\n* 友情链接\n* 站点统计\n* 文章分享海报\n\n**管理页面功能：**\n\n\u003e 目前管理页面不支持开启**二步验证**登录！\n\n* 后台登录\n* 站点信息\n* 个人信息修改\n* 服务器信息查看\n* 博客设置浏览\n* 友链管理\n* 日记管理\n* 文章/分类/标签管理\n* 附件上传、图库管理\n* 评论审核、回复\n* 主题切换、菜单编辑\n\n\u003e [开发计划](https://docs.geekera.cn/gblog-wx/dev-plan.html)\n\u003e\n\u003e [更新日志](https://docs.geekera.cn/gblog-wx/update-log.html)\n\n### 七、致谢\n\n* [halo](https://github.com/halo-dev/halo) 一个优秀的开源博客发布应用\n* [ColorUI](https://github.com/weilanwl/ColorUI) 鲜亮的高饱和色彩，专注视觉的小程序组件库\n* [mp-html](https://github.com/jin-yufeng/mp-html) 小程序富文本组件，支持渲染和编辑 html，支持在微信、QQ、百度、支付宝、头条和 uni-app 平台使用\n* [Painter](https://github.com/Kujiale-Mobile/Painter) 小程序生成图片库，轻松通过 json 方式绘制一张可以发到朋友圈的图片\n* [qs](https://github.com/ljharb/qs) A querystring parser with nesting support\n\n### 八、联系\n\n如果您发现了什么bug，或者有什么界面建议或意见，\n\n欢迎 [issue](https://github.com/fuzui/GBlog-wx/issues)，当然也可以直接点小程序关于栏中的“联系我”或“意见反馈”或“留言”,或者\n[![qq群](https://img.shields.io/badge/Q%E7%BE%A4-199399240-red \"qq群\")](https://qm.qq.com/cgi-bin/qm/qr?k=Pq2leZgYF4FWqveg5jeKzBX8RS6iF2K2\u0026jump_from=webapi)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevhoangkien%2Fblog-halo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevhoangkien%2Fblog-halo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevhoangkien%2Fblog-halo/lists"}