Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完善文档 1 补全英文文档更多部署方式修改 2 添加升级到Hexo7.0指导说明 #909

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,34 @@ $('.bg-cover').css('background-image', 'url(/medias/banner/' + new Date().getDay

There are 24 featured pictures in `/source/medias/featureimages`, you can add or delete some, and modify corresponding settings in the theme's `_config.yml`.

## More Deployment Options

> Jsdelivr has been blocked. The following alternatives can speed up access.

### [Vercel Deployment](https://blog.17lai.site/posts/5311b619/#vercel-deployment)

### [Cloudflare Pages Deployment](https://blog.17lai.site/posts/5311b619/#cloudflare-pages-deployment)

## Upgrade Hexo Version to Version 7.0

> Only two modifications are needed, you can see the [release notes for version 7.0](https://hexo.io/news/2023/11/03/hexo-7-0-0-released/) here.

### No Longer Use gist, youtube, jsfiddle, and vimeo Tags

Some built-in tags have been removed (gist, youtube, jsfiddle, and vimeo). If you use these tags in your existing blog posts, you can install hexo-tag-embed to continue using them with Hexo v7.0.0.

```bash
$ npm i hexo-tag-embed
```

### Changes in Code Highlighting Configuration

Syntax highlighting is refactored and controlled by the following settings. See Syntax Highlighting for more details.

```yaml
syntax_highlighter: highlight.js # highlight.js | prismjs | <empty>
```

## Changelog

See [CHANGELOG.md](https://github.com/blinkfox/hexo-theme-matery/blob/master/CHANGELOG.md)
27 changes: 23 additions & 4 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -678,10 +678,6 @@ $('.bg-cover').css('background-image', 'url(/medias/banner/' + new Date().getDay

在 `/source/medias/featureimages` 文件夹中默认有 24 张特色图片,你可以再增加或者减少,并需要在 `_config.yml` 做同步修改。

## 版本变更记录

参见 [CHANGELOG.md](https://github.com/blinkfox/hexo-theme-matery/blob/master/CHANGELOG.md)

## 更多部署方式

> Jsdelivr 已经被封了,这两个可以加速访问快一点
Expand All @@ -690,3 +686,26 @@ $('.bg-cover').css('background-image', 'url(/medias/banner/' + new Date().getDay

### [cloudflare Pages 部署](https://blog.17lai.site/posts/5311b619/#cloudflare-Pages-%E9%83%A8%E7%BD%B2)

## 升级 Hexo 到 Version 7.0

> 只需两部分修改,这里可以看到[7.0版本发布说明](https://hexo.io/news/2023/11/03/hexo-7-0-0-released/)

### 不再使用gist, youtube, jsfiddle, and vimeo 这几个tag

一些内置标签已被删除(gist、youtube、jsfiddle 和 vimeo)。如果您在现有的博客文章中使用了这些标签,您可以安装 hexo-tag-embed 以在 Hexo v7.0.0 中继续使用它们。

```bash
$ npm i hexo-tag-embed
```

### 代码高亮配置方式修改

语法高亮已进行重构,并由以下设置控制。有关详细信息,请参阅语法高亮。

```yaml
syntax_highlighter: highlight.js # highlight.js | prismjs | <empty>
```

## 版本变更记录

参见 [CHANGELOG.md](https://github.com/blinkfox/hexo-theme-matery/blob/master/CHANGELOG.md)