{% blockquote Seth Godin http://sethgodin.typepad.com/seths_blog/2009/07/welcome-to-island-marketing.html Welcome to Island Marketing %} Every interaction is both precious and an opportunity to delight. {% endblockquote %}
Every interaction is both precious and an opportunity to delight.
hexo n #hexo new hexo p #hexo publish hexo g #hexo generate hexo s #hexo server hexo d #hexo deploy
hexo s -g #hexo server with generator hexo s -g --draft #hexo server with generator and show drafts
Server
script
1 2 3 4 5 6 7
hexo server #Hexo will watch files, don't need to restart server hexo server -s #Static mode, serve public folder and disable file watching. hexo server -p 5000 #change port hexo server -i 192.168.1.1 #custom ip hexo clean #Cleans the cache file (db.json) and generated files (public). hexo g #Generates static files. hexo d #Deploys your website.
hexo new "postName" # new post _posts/postName.md hexo new page "pageName" hexo generate hexo server hexo deploy #.deploy deploy to GitHub repo hexo new [layout] <title> hexo new photo "My Gallery" hexo new "Hello World" --lang tw
hexo new draft "New Draft" # New-Draft.md hexo publish "New Draft" # copy New-Draft.md from _drafts to _posts
start Server
script
1
hexo s
new page
script
1
$ hexo new page "page name"
new post
script
1 2 3 4 5
// new post $ hexo new "post name"
hexo new [layout] <title> <!-- Layout: draft/post/