The original mini program could be found by searching for it前端农民工 in WeChat or scanning this code:
Generate an API from Hexo
Install hexo-generator-wxapi:
1 | npm install hexo-generator-wxapi --save |
See the project documentation for current usage details.
Add the required API configuration to the root Hexo _config.yml:
1 | restful_api: |
Configure the mini program
Clone the front-end project and import it into WeChat Developer Tools:
1 | git clone https://github.com/Rr210/hexo-wx-api |
Open config/config.js and update the site-specific values:
1 | const DOMAIN = 'lengmo714.top'; |
The home-page navigation can also be customized in this file. Its redirecttype distinguishes internal pages, other mini programs, and web views. Global styling is defined in app.wxss.
Upload
Use WeChat Developer Tools to upload the build, then complete the Mini Program submission and review workflow. Before publishing, configure the permitted request domains in the WeChat console and confirm that the Hexo API is served over HTTPS.