Skip to content

skyhsiao/winwin-hexo-editor

 
 

Repository files navigation

@winwin/hexo-editor

一个在线hexo博客编辑器 | An online hexo blog editor by winwin2011


截图 | Screenshots

请访问主页 | Please visit homepage

移动客户端 | Mobile client

Main page

功能 | Feature

  • 文章增删改和预览 | 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 ...

安装 | Installation

没有Hexo和Node.js经验的同学可以查看手把手教学

For bigginers with no background knowledge about Hexo and Node.js, please visit Hand by hand installation guide

默认安装 | Default installation

下载源码 | 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.

使用自定义服务器 | With custom server address

直接使用http://yourapiaddress:5777即可。 | Just open http://yourapiaddress:5777.

你需要自行配置你的http服务器反向代理。 | You need to configure your HTTP server proxy.

选项 | Options

所有选项都通过安装程序设定 | 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'
}

更新 | Update

运行安装程序 | 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

支持 | Support

贡献 | Contribute

欢迎各种各样的PR(魔改也是可以的!)

All kinds of PR are welcomed, including crazy change!

如果这项目帮到你了,点个爱的五角星呗~

If this project helped you a bit, please leave a ⭐ with your ❤ :p!

致谢 | Acknowledgement

感谢和我一起扣代码的maomishen小伙伴!

hexo-client by gaoyoubo, homepage

hexo-admin by jaredly, homepage

感谢他们教会我怎么使用hexo!| I learnt a lot about hexo usage from them!

Qusar Login Form Card Component by justinatack

Packages

No packages published

Languages

  • Vue 50.8%
  • JavaScript 23.4%
  • CSS 15.4%
  • HTML 7.8%
  • Shell 2.6%