{"id":22585267,"url":"https://github.com/wangsrgit119/mini-blog-halo","last_synced_at":"2025-10-06T02:20:32.266Z","repository":{"id":54612979,"uuid":"352500421","full_name":"wangsrGit119/mini-blog-halo","owner":"wangsrGit119","description":"一款简洁的微信小程序博客（支持海报，评论，留言等等，基于halo的开放api）","archived":false,"fork":false,"pushed_at":"2023-08-29T04:09:58.000Z","size":5860,"stargazers_count":116,"open_issues_count":1,"forks_count":28,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T20:38:32.557Z","etag":null,"topics":["blog","halo","halo-theme","miniblog","wechat"],"latest_commit_sha":null,"homepage":"http://mbhdoc.wangsrbus.cn","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangsrGit119.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,"zenodo":null}},"created_at":"2021-03-29T03:06:07.000Z","updated_at":"2025-03-17T09:14:52.000Z","dependencies_parsed_at":"2025-04-10T20:35:30.814Z","dependency_job_id":null,"html_url":"https://github.com/wangsrGit119/mini-blog-halo","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/wangsrGit119/mini-blog-halo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangsrGit119%2Fmini-blog-halo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangsrGit119%2Fmini-blog-halo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangsrGit119%2Fmini-blog-halo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangsrGit119%2Fmini-blog-halo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangsrGit119","download_url":"https://codeload.github.com/wangsrGit119/mini-blog-halo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangsrGit119%2Fmini-blog-halo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278548004,"owners_count":26004815,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["blog","halo","halo-theme","miniblog","wechat"],"created_at":"2024-12-08T07:07:57.308Z","updated_at":"2025-10-06T02:20:32.261Z","avatar_url":"https://github.com/wangsrGit119.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简介须知\n\n此微信小程序是基于开源博客Halo 1.5提供的API开发，使用的前提是自己已经部署有自己的Halo博客网站。\n- 微信小程序使用api必须是https，因此需要自己的博客网站配置ssl证书。\n- 下载后直接微信小程序开发工具打开即可。\n- 在app.js配置acess_key以及线上api地址\n-  联系方式（bug或者新功能添加请在仓库issue中提出）\n![](https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1-sucfufufu620119-brightgreen)\n\n## 小程序\n\u003cdiv\u003e\n\u003cimg src=\"./images/1001.png\" width=\"100px\" height=\"200px\" /\u003e\n\u003c/div\u003e\n\n-----\n\n\n## Halo开源博客地址\n\n- [halo官网](https://halo.run/)\n- [halo-GitHub地址](https://github.com/halo-dev/halo)\n\n## 参考文档\n\n- [云开发文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/getting-started.html)\n\n## 本地或者自己部署线上配置\n\n## **基础配置**\n\n\u003e `项目路径` -\u003e `app.js `文件中\n\n - `domain`:'https://blog.wangsrbus.cn',//博客地址\n - `baseUrl`: 'https://blog.wangsrbus.cn/api', //博客api地址\n - `api_access_key`:\"xxx\", //token\n - `loading_img`:\"\",加载中gift\n - `empty_img`:\"\",//空白gift\n - `title`:\"Hi,I'm suke\",//自定义title\n - `shareName`:'suke’s share',//小程序分享名称\n - `openComment`:true,//是否开启评论 true为开启 false为关闭 -----------  云端控制请到halo后台配置系统变量 key:suke_wechat_comment value:show/noshow\n -  `index_art_style`:'card01', //首页最新文章样式 内置：card01/card02\n - `openAd`:true,//流量主开通则打开\n - `unitId`:'xxxxxxxxx',//原生模板广告ID  自定义的时候自己可以选择样式\n - `unitId2`:'xxxxxxxxx',//视频激励广告--用于文章设置观看视频阅读更多功能\n - `customSlug_one_title`:'科技动态',//分类自定义标题 【小程序展示title】\n - `customSlug_one`:'新闻',//分类 【halo文章的分类名称】\n  \n - `sheetId`:34,留言板ID----需要数据库去查询或者F12查看网页端留言页面的id或者去后台管理找到页面F12 然后查看network 还不会的话请联系博主帮助\n\n----\n\n\n\n## 跳转公众号文章配置\n\n发表文章时在halo后台配置`元数据`：key为 `gzhURL` value为：`公众号文章链接`\n\n\n\n## 海报生成的二维码配置\n\n\u003e `项目下路径` \u003e `images` \u003e `wechat-q-code.jpg`替换成自己的二维码   \n\n## 流量主配置\n\n - 登录后台，开通流量主\n - 按照下面创建`原生模板广告`和`激励式广告`\n\n\u003e `原生模板广告`,注意修改样式 保证和文章列表渲染匹配\n \n ![1](./images/adunit-1.png)\n ![2](./images/adunit-2.png)\n ![3](./images/adunit-3.png)\n\n\u003e **激励式广告，这个和halo文章设置元数据有关，因为需要您在发布文章的时候指定参数如下**\n\n- 微信后台创建广告\n![4](./images/adunit-4.png)\n  \n- halo后台创建元数据\n  \n  - `showAd`: `true/false`  是否展示激励广告\n  - `maxShowHeight` `number类型的数字`  对应文章在展示激励广告时可见内容高度  `不设置默认在1500`\n  ![4](../images/article-adunit-set.png)\n\n - 复制对应的广告id填写到app.js配置文件中\n \n```javascript\n     openAd:true,//流量主开通则打开\n      unitId:'adunit-11111',//原生模板广告ID  自定义的时候子集可以选择样式\n      unitId2:'adunit-22222222',//视频激励广告--用于文章设置观看视频阅读更多功能\n```\n\n## 鸣谢\n - Halo 高颜值轻便开源个人博客\n - lin-ui 简洁美观的小程序UI组件\n - mp-html 富文本和markdown渲染组件\n - vant 众多人喜欢的小程序渲染组件\n \n## License\n MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangsrgit119%2Fmini-blog-halo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangsrgit119%2Fmini-blog-halo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangsrgit119%2Fmini-blog-halo/lists"}