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
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 pagefollow 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 appearin this example, the post is in the file
source/_posts/artifacts/000_hexo-quickstart.md
so we create the foldersource/images/000_hexo-quickstart
and copy images to that folder (here we copiedf14.jpeg
andftdi.png
), etc…to use an image include this markdown in the page (note
/blog
is theroot: blog
setting in_config.yml
)![](/images/000_hexo-quickstart/ftdi.png)
and another…
![](/images/000_hexo-quickstart/f14.jpeg)