My first Blog
Post
Create a new post
$ hexo new "Name"
$ hexo new post "topic" --path "folder/topic"Include image in a post
Move the image to the folder created automatically by Hexo, and then use the relative path to refer to the image.
Using hexo syntax, but unable to resize the image:
{% asset_img sample.jpeg 'This is my picture' %}
Or directly use an <img> tag:
<img src="sample.jpeg" style="width: 300px; height: auto;" alt="Sample Image">
With centered alignment:
<div style="text-align: center;">
<img src="sample.jpeg" style="width: 300px; height: auto;" alt="Sample Image">
</div>
Blog
Generate static files
$ hexo gRun server
$ hexo sDeploy
$ hexo dGenerate and Deploy
$ hexo g -dPost Image
index_img: /img/test.jpeg
banner_img: /img/sky_castle.jpgCreate a new page
$ hexo new page "name"Creating a new navigation bar
- Create a new
.ejsfile in/themes/fluid/layout/ - Add page attributes in
_config.fluid.yml, and include a new menu item insidenavbar.menu - Modify
/themes/fluid/languages/en.ymlto add titles and subtitles
My first Blog
http://example.com/2024/06/23/test/