usages and bugs for this blog

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

Drafts

Previously, we mentioned a special layout in Hexo: draft. Posts initialized with this layout are saved to the source/_drafts folder. You can use the publish command to move drafts to the source/_posts folder. publish works in a similar way to the new command.

1
$ hexo publish [layout] <title>

Drafts are not displayed by default. You can add the --draft option when running Hexo or enable the render_drafts setting in _config.yml to render drafts.

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

Theme

Hexo Fluid 用户手册 (fluid-dev.github.io)

Usages

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: typora-vue-theme主题介绍
date: 2020-09-07 09:25:00
author: Sliing
img: /source/images/xxx.jpg
top: true
cover: true
coverImg: /images/1.jpg
password: 8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92
toc: false
mathjax: false
summary: 这是你自定义的文章摘要内容,如果这个属性有值,文章卡片摘要就显示这段文字,否则程序会自动截取文章的部分内容作为摘要
categories: Markdown
tags:
- Typora
- Markdown
---
title: usages and bugs for this blog
date: 2022-06-27 05:01:50
tags: [coding]
categories: coding
abstract: Welcome to my blog, enter password to read.
message: halo

参数 描述 默认值
layout 布局 config.default_layout
title 标题 文章的文件名
date 建立日期 文件建立日期
updated 更新日期 文件更新日期
comments 开启文章的评论功能 true
tags 标签(不适用于分页)
categories 分类(不适用于分页)
permalink 覆盖文章网址
excerpt Page excerpt in plain text. Use this plugin to format the text
disableNunjucks Disable rendering of Nunjucks tag {{ }}/{% %} and tag plugins when enabled
lang Set the language to override auto-detection Inherited from _config.yml

Bugs

1
fatal: unable to access 'https://github.com/yangqing-20/yangqing-20.github.io.git/': OpenSSL SSL_read: Connection was reset, errno 10054

解决:开了加速器。关闭即可。

关闭加速器。hexo clean。(删除/myblog/.deploy_git)hexo g hexo d。hexo d 可能需要多试几遍。

原因:不知。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ hexo d
INFO Validating config
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
On branch master
nothing to commit, working tree clean
fatal: unable to access 'https://github.com/yangqing-20/yangqing-20.github.io.git/': Failed to connect to github.com port 443 after 21043 ms: Timed out
FATAL {
err: Error: Spawn failed
at ChildProcess.<anonymous> (D:\personal\blog-github\yangqing-20.github.io\myblog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:537:28)
at cp.emit (D:\personal\blog-github\yangqing-20.github.io\myblog\node_modules\cross-spawn\lib\enoent.js:34:29)
at ChildProcess._handle.onexit (node:internal/child_process:291:12) {
code: 128
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

usages and bugs for this blog
https://yangqing-20.github.io/2022/06/27/usages and bugs/
Author
yangqing
Posted on
June 27, 2022
Licensed under