一个在线hexo博客编辑器 | An online hexo blog editor by winwin2011
- 文章增删改和预览 | Post add/delete/update and preview
- 发布和草稿 | Post puiblish/unpublish/drafts
- Markdown编辑 | Markdown editor
- 分类 | categories
- 标签 | tags
- git同步 | git push/reset/pull
- hexo命令 | hexo generate/deploy/clean
- 登录 | Basic authentication
- 文章排序 | Post sort
- front-matters
- 文章搜索 | Search
-
图床Image CDN(请使用picgo替代 | use picgo instead) - 亲,请告诉我您还需要什么 ~ | let me know what you need ...
没有Hexo和Node.js经验的同学可以查看手把手教学
For bigginers with no background knowledge about Hexo and Node.js, please visit Hand by hand installation guide
下载源码 | Download source
git clone https://github.com/YuJianghao/winwin-hexo-editor
运行安装程序 | Run Installer
可以使用默认值 | You can use default settings.
cd winwin-hexo-editor
bash install.sh
开始运行 | Start
# 不适用pm2 | without pm2
npm run start
# 使用pm2 | with pm2
# 开启 | start
npm run prd
# 停止 | stop
npm run stop
# 重启 | restart
npm run restart
# 开发 | for development
npm run dev
然后用浏览器打开http://localhost:5777
| Then open http://localhost:5777
from your browser.
直接使用http://yourapiaddress:5777
即可。 | Just open http://yourapiaddress:5777
.
你需要自行配置你的http服务器反向代理。 | You need to configure your HTTP server proxy.
所有选项都通过安装程序设定 | All options are set through installer.
module.exports = {
port: 5777,
hexoRoot: '', // 博客文件夹目录 | hexo blog folder path
jwtSecret: 'secret', // 密钥 | secret
jwtExpire: '1h', // 操作过期时间 | access expire time
jwtRefresh: '7d', // 登录过期时间 | login expire time
username: 'admin',
password: 'admin'
}
运行安装程序 | Run Installer
node ./install.js
在第一步中指定需要更新 | Set update to yes at very first step
installer > Update hexo-editor? Yes
在安装程序结束后重启 | Restart after finishing install
pm2 restart hexoeditor
欢迎各种各样的PR(魔改也是可以的!)
All kinds of PR are welcomed, including crazy change!
如果这项目帮到你了,点个爱的五角星呗~
If this project helped you a bit, please leave a ⭐ with your ❤ :p!
感谢和我一起扣代码的maomishen小伙伴!
hexo-client by gaoyoubo, homepage
hexo-admin by jaredly, homepage
感谢他们教会我怎么使用hexo!| I learnt a lot about hexo usage from them!