Hello World
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
$ hexo new "My New Post"
More info: Writing
Run server
$ hexo server
More info: Server
Generate static files
$ hexo generate
More info: Generating
Deploy to remote sites
$ hexo deploy
More info: Deployment
Delete post
- Delete the post under source/_post folder
- Run hexo clean to delete the database (db.json) and assets folder
- Run hexo generateto generate the new blog without your deleted post
- Run hexo deploy to deploy your blog
Add local images
- Set
post_asset_folder: true
in_config.yml
. - Add an npm package
npm i -s hexo-asset-link
- Use syntax
![Alt Text](Post-Asset-Folder/image-name.png)
for images in./source/_posts/Post-Asset-Folder/image-name.png
More info: Asset Folders, Local Images with Markdown