Hexo
Hexo is another tool that helps post blog.
Commands
Create a new blog:
hexo new another-post
Deploy the new blog:
hexo generate
hexo clean
hexo deploy
Remember to add this line after a short description of this post:
<!-- more -->
When using the embedded code of an online video, such as the videos on Youtube or Bilibili, we could use the flowing line to adjust the size of the video window:
<div class="mdui-video-container">
<iframe src="//player.bilibili.com/player.html?aid=684730157&bvid=BV1BU4y197dp&cid=738874866&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe> // the embedded code
</div>
To set the cover of a post, you need to set the ‘cover’ value in the front-matter:
---
title: Hello World
date: 2013/7/13 20:46:25
cover: https://s2.loli.net/2024/02/24/6le2zdjBODXmsr7.png
coverWidth: 1200
coverHeight: 750
---
Create the blog with Hexo
Some tutorials
How to use Hexo and deploy to GitHub Pages
Note
The configuration file “_config.yml” in the root directory of the Hexo project is important. Check this page to edit it.
This page tell you how to host a Hexo blog with github.
There are a lot of pretty and free themes on the official web. And follow the steps to apply your favorite theme.
I use this theme because it allows me to present many pictures in the home page.
