Alfred Workflow for manage Hexo project.
This workflow has attracted a command for managing your Hexo blog.
Download package from 'Release' tab.
Or, clone this repository in your Alfred Workflow directory.
Run 'hxsetup' and input your informaons to 'Config' file.
- Path of your hexo project folder
- Name of your favorite editor
- Name of your favorite Terminal emulator
- URL of your site
Add your 'source' folder to Search Scope.
Alfred text | Commands | Options (<*>:Required / [*],-*,--*:Optional) |
---|---|---|
hx | Open Hexo project folder in Terminal | |
hxn | Create new article | <title> |
hxb | Create draft (blueprint) | <title> |
hxp | Publish drafts ('status: p' in 'drafts' folder) | |
hxu | Unpublish article ('status: d' in 'posts' folder) | |
hxo | Open website in default brower | |
hxconf | Open '_config,yml' (with default editor) | |
hxh | Reference to Help | |
hxg(generate) | Generate contents | -d, --deploy, -w, --watch |
hxd(deploy) | Deploy contents | --setup, -g, --generate, -m, --message |
hxs(server) | Run & open local server (at http://localhost:4000/) | -p, --port, -s, --static, -l, --log, -d, --drafts |
hxr(render) | Renders files | <file1> [file2] -o, --output |
hxm(migrate) | Migrates content from other blog systems | <type> |
hxc(clean) | Delete all generated files | |
h:f | Find folder with file names | (ctrl):Copy Markdown link (Shift): Open URL |
h:s | Search folder with file contents | (ctrl):Copy Markdown link (Shift): Open URL |
hxdg,hxgd | Generate & Deploy contents & Open Site | |
hxsetup | Create & open 'Config' file |
It is generated by md5 hash function from the title. You can be included in the permalink.
It can be used to manage the public state.