Hexo Quickstart

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Image Assets

documentation…

  • NOTE** there are other ways to do this (see documentation above), but, this is my way ;)

  • assume the following directory structure and file locations

    the location of this markdown file (the one you’re reading right now)

    the location of the images rendered in this page

  • follow these steps to include an image in your markup

    • put your images in source/images/<markdown-filename> where "<markdown-filename>" is the same name as the post where the image will appear

      • in this example, the post is in the file source/_posts/artifacts/000_hexo-quickstart.md
        so we create the folder source/images/000_hexo-quickstart and copy images to that folder (here we copied f14.jpeg and ftdi.png), etc…

      • to use an image include this markdown in the page (note /blog is the root: blog setting in _config.yml)
        ![](/images/000_hexo-quickstart/ftdi.png)

      and another…
      ![](/images/000_hexo-quickstart/f14.jpeg)