test

Post

Create a new post

1
$ hexo new "Name"

Include image in a post

  1. Move the image to the folder created automatically by hexo, and then we can use relative path to refer the image
  2. 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">
Sample Image
1
2
3
<div style="text-align: center;">
<img src="sample.jpeg" style="width: 300px; height: auto;" alt="Sample Image">
</div>
Sample Image

Blog

Generate static files

1
$ hexo g

Run server

1
$ hexo s

Deploy

1
$ hexo d

Generate and Deploy

1
hexo g -d

Insert new image

Insert the image to /source/img directory, and then generate static files.

Create a new page

1
$ hexo new page "name"

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

test
https://thiefcat.github.io/2024/06/23/test/
Author
小贼猫
Posted on
June 23, 2024
Licensed under