Skip to content

catfist/Alfred-MyHexo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alfred-MyHexo

Alfred Workflow for manage Hexo project.

screenshot

Workflow to manage your Hexo blog

This workflow has attracted a command for managing your Hexo blog.

Install

Download package from 'Release' tab.

Or, clone this repository in your Alfred Workflow directory.

Setup

Variables

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

'h:s' & 'h:f' File Filter

Add your 'source' folder to Search Scope.

Usage

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

Hexo custom arguments

pid

It is generated by md5 hash function from the title. You can be included in the permalink.

status

It can be used to manage the public state.

About

Alfred Workflow for manage Hexo project

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages