Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

自定义 CSS

高亮块

高亮块 Test

  • H List

背景配色

1539613155479

#fff #eaeaea #d4d4d4 #ddd1f3 #f0d1f6 #f0d1f6
#fedec1 #ffe697 #cdedd8 #cdeef0 #cde6f9 #ccd7ea
#3f3f3f #737373 #979797 #8b65e0 #c064d1 #fc5356
#fd7b39 #ffc200 #57b779 #57bfc4 #54a9e6 #426bb3

背景色

Hello world!

1
<p style="background:#cdedd8;">Hello world!</p>

CSS 文本格式

居中

Hello world!

1
<p style="text-align:center; ">Hello world!</p>

CSS字体

你好 世界!

需指定字体大小

1
<p style="text-align:center;font:28px 华文楷体 ;color:red;"><b>你好 世界!</b></p> 
> 只能块显示
1
2
3
<div 
style="display:in-line;background:#cdedd8;height:28px;width:28px; border- radius:50%;">
</div>

折叠

I have keys but no locks. I have space but no room. You can enter but can't leave. What am I? A keyboard. Hello World!!
1
2
3
4
<details>
<summary>I have keys but no locks. I have space but no room. You can enter but can't leave. What am I?</summary>
A keyboard. Hello World!!
</details>

快捷键

Ctrl+F9

hell

1
2
<kbd>Ctrl</kbd>+<kbd>F9</kbd>
<kbd>hell</kbd>

音乐

无效

视频

1
<video src="../../Movies/eg.mp4" />

分页

自动分页

导出为PDF,并在顶级标题上设置分页符。

打开themes文件夹,然后根据要包含的内容编辑css。

1
2
3
4
5
6
7
8
@media print {
h1 {
page-break-before: always;
}
h1:first-of-type {
page-break-before: avoid;
}
}

现在导出时,将在每个h1元素之前创建一个新页面,第一个元素除外。

强制分页

要在文档上插入强制分页<div style="page-break-after: always;"></div>


参考:

http://www.runoob.com/css/css-tutorial.html

https://support.typora.io/HTML/