From 49b866bbe21800e4bab66fe323c5b181fc38ebdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=91=AB?= <7176466@qq.com> Date: Tue, 30 Aug 2022 23:19:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/hello-hexo.md | 46 +++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/source/_posts/hello-hexo.md b/source/_posts/hello-hexo.md index 5b622ff..d53c5a5 100644 --- a/source/_posts/hello-hexo.md +++ b/source/_posts/hello-hexo.md @@ -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 ``` + + +## 语法 + +### 文章截断 + +`` 行之前的文字将会被视为摘要 + +### 插入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 %}