> For the complete documentation index, see [llms.txt](https://close.gitbook.io/yun-wei-bi-ji/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://close.gitbook.io/yun-wei-bi-ji/go/xue-xi-bi-ji/myblog.md).

# myblog

#### node.js 安装

```bash
VERSION=v14.17.3
DISTRO=linux-x64

wget -c https://nodejs.org/dist/${VERSION}/node-${VERSION}-${DISTRO}.tar.xz
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xJvf node-$VERSION-$DISTRO.tar.xz -C /usr/local/lib/nodejs 


cat >> /root/.bash_profile <<EOF
VERSION=${VERSION}
DISTRO=${DISTRO}
export PATH=/usr/local/lib/nodejs/node-\$VERSION-\$DISTRO/bin:\$PATH
EOF


source /root/.bash_profile


node -v
npm version
npx -v
```

#### 安装 hexo

```bash
npm install -g hexo-cli
hexo init myblog
cd myblog
npm install
```

#### 改变主题

```bash
cd themes/
git clone https://github.com/blinkfox/hexo-theme-matery.git
```

#### 启动

```bash
hexo d 
hexo g
hexo server -i IP
```

#### 其他配置参考

> <https://github.com/blinkfox/hexo-theme-matery/blob/develop/README\\_CN.md>
>
> <https://blinkfox.github.io/2018/09/28/qian-duan/hexo-bo-ke-zhu-ti-zhi-hexo-theme-matery-de-jie-shao/#wechat>

#### 主题文件下其他文件

/source/medias/banner/ 默认首页轮播图位置 /source/medias/featureimages/ 默认文章封面图位置 /source/medias/reward/ 默认打赏图片位置

`Front-matter` 选项中的所有内容均为**非必填**的。但我仍然建议至少填写 `title` 和 `date` 的值。

| 配置选项          | 默认值                         | 描述                                                                                                                       |
| ------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| title         | `Markdown` 的文件标题            | 文章标题，强烈建议填写此选项                                                                                                           |
| date          | 文件创建时的日期时间                  | 发布时间，强烈建议填写此选项，且最好保证全局唯一                                                                                                 |
| author        | 根 `_config.yml` 中的 `author` | 文章作者                                                                                                                     |
| img           | `featureImages` 中的某个值       | 文章特征图，推荐使用图床(腾讯云、七牛云、又拍云等)来做图片的路径.如: `http://xxx.com/xxx.jpg`                                                            |
| top           | `true`                      | 推荐文章（文章是否置顶），如果 `top` 值为 `true`，则会作为首页推荐文章                                                                               |
| hide          | `false`                     | 隐藏文章，如果`hide`值为`true`，则文章不会在首页显示                                                                                         |
| cover         | `false`                     | `v1.0.2`版本新增，表示该文章是否需要加入到首页轮播封面中                                                                                         |
| coverImg      | 无                           | `v1.0.2`版本新增，表示该文章在首页轮播封面需要显示的图片路径，如果没有，则默认使用文章的特色图片                                                                     |
| password      | 无                           | 文章阅读密码，如果要对文章设置阅读验证密码的话，就可以设置 `password` 的值，该值必须是用 `SHA256` 加密后的密码，防止被他人识破。前提是在主题的 `config.yml` 中激活了 `verifyPassword` 选项 |
| toc           | `true`                      | 是否开启 TOC，可以针对某篇文章单独关闭 TOC 的功能。前提是在主题的 `config.yml` 中激活了 `toc` 选项                                                         |
| mathjax       | `false`                     | 是否开启数学公式支持 ，本文章是否开启 `mathjax`，且需要在主题的 `_config.yml` 文件中也需要开启才行                                                           |
| summary       | 无                           | 文章摘要，自定义的文章摘要内容，如果这个属性有值，文章卡片摘要就显示这段文字，否则程序会自动截取文章的部分内容作为摘要                                                              |
| categories    | 无                           | 文章分类，本主题的分类表示宏观上大的分类，只建议一篇文章一个分类                                                                                         |
| tags          | 无                           | 文章标签，一篇文章可以多个标签                                                                                                          |
| keywords      | 文章标题                        | 文章关键字，SEO 时需要                                                                                                            |
| reprintPolicy | cc\_by                      | 文章转载规则， 可以是 cc\_by, cc\_by\_nd, cc\_by\_sa, cc\_by\_nc, cc\_by\_nc\_nd, cc\_by\_nc\_sa, cc0, noreprint 或 pay 中的一个        |

```
---
title: typora-vue-theme主题介绍
date: 2018-09-07 09:25:00
author: 蜡笔小新
top: true           
hide: false
cover: true
toc: false
mathjax: false
summary: 这是你自定义的文章摘要内容，如果这个属性有值，文章卡片摘要就显示这段文字，否则程序会自动截取文章的部分内容作为摘要
categories: Markdown
tags:
  - Typora
  - Markdown
---
```
