添加内容
This commit is contained in:
parent
890ee448b9
commit
49b866bbe2
@ -2,27 +2,34 @@
|
||||
title: Hello, Hexo!
|
||||
keywords: []
|
||||
categories: []
|
||||
tags: [hexo]
|
||||
tags: [Hexo]
|
||||
sitemap: true
|
||||
---
|
||||
|
||||
## 命令
|
||||
|
||||
**数字化记忆**使用 [Hexo](https://hexo.io/) 创建! Hexo 的其它详细使用方法请参其 [文档](https://hexo.io/docs/) 。
|
||||
|
||||
## 新建
|
||||
### 新建内容
|
||||
|
||||
``` bash
|
||||
hexo new "我是一篇新帖子"
|
||||
hexo new "我是一篇新帖子" # 新建post
|
||||
hexo new page "我是一个新页面" # 新建page
|
||||
```
|
||||
|
||||
## 生成
|
||||
新建的文件在source/目录中
|
||||
|
||||
### 本地服务器
|
||||
|
||||
``` bash
|
||||
hexo generate
|
||||
hexo server # 可帮助本地预览调试 http://localhost:4000
|
||||
```
|
||||
|
||||
## 发布
|
||||
### 生成与发布
|
||||
|
||||
``` bash
|
||||
hexo deploy
|
||||
hexo generate # 生成静态文件,默认在public/中
|
||||
hexo deploy # 发布到指定的地方
|
||||
```
|
||||
|
||||
也可使用以下简化版命令生成发布一次搞定:
|
||||
@ -30,3 +37,28 @@ hexo deploy
|
||||
``` bash
|
||||
hexo g -d
|
||||
```
|
||||
<!-- more -->
|
||||
|
||||
## 语法
|
||||
|
||||
### 文章截断
|
||||
|
||||
`<!-- more -->` 行之前的文字将会被视为摘要
|
||||
|
||||
### 插入YouTube视频
|
||||
|
||||
``` code 插入YouTube视频
|
||||
{% youtube video_id [type] [cookie] %}
|
||||
```
|
||||
|
||||
``` code 插入单个视频
|
||||
{% youtube xvIRGmKWpFM %}
|
||||
```
|
||||
|
||||
{% youtube xvIRGmKWpFM %}
|
||||
|
||||
``` code 插入播放列表并禁用cookie
|
||||
{% youtube PLmv2z1opFmpVngCz-9tXFd-r6j84mT5vq 'playlist' false %}
|
||||
```
|
||||
|
||||
{% youtube PLmv2z1opFmpVngCz-9tXFd-r6j84mT5vq 'playlist' false %}
|
||||
|
Loading…
Reference in New Issue
Block a user