Create the Post with Images
A good practice when starting new posts is to use the “draft” feature. Drafts will not be published by default, so you are free to make changes to other posts while keeping unfinished drafts hidden from public.
|
|
Inserting images
Images and other asset files can be placed in subdirectories under the ./source/ folder. Use a picture downloaded from google images. In my case, I use Hexo logo. Download the picture into the path below,
|
|
Adding Image Link to Draft File
Edit your draft by adding the code below
|
|
Publishing Drafts
When it’s time to move the draft to a “live” post for the world to see, use the hexo publish command:
|
|
A few things will happen when this command is run:
- The markdown file My-First-Blog-Post.md moves from ./source/_drafts/ to ./source/_posts.
- The file’s “front-matter” changes to include a publish date:
Generate the Static File
Finally, prepare the entire site for deployment. Run the hexo generate command:
|
|
Next Steps
- Update gitHub repository
- Detail way refer to Getting Start Page
近期评论