Post
Create a new post
Include image in a post
- Move the image to the folder created automatically by hexo, and then we can use relative path to refer the image
- Format the image using inline CSS:
1 2 3
| <div style="text-align: center;"> {% asset_img sample.jpeg %} </div>
|
1
| <img src="sample.jpeg" style="width: 300px; height: auto;" alt="Sample Image">
|
1 2 3
| <div style="text-align: center;"> <img src="sample.jpeg" style="width: 300px; height: auto;" alt="Sample Image"> </div>
|
Blog
Generate static files
Run server
Deploy
Generate and Deploy
Insert new image
Insert the image to /source/img directory, and then generate static files.
Create a new page
Creating a new navigation bar:
- Create a new ejs file in /themes/fluid/layout/
- Add page attributes in _confid.fluid.yml, and add a new menu inside navbar.menu
- Modify the /themes/fluid/languages/en.yml, adding titles and subtitles