hexo网站搭建

网站搭建过程

1. 注册GitHub

https://github.com/

1.1. 创建仓库

在这里插入图片描述

仓库名必须为username.github.io

创建好后在设置中就可以看到GitHub Pages选项,现在就可以直接访问该网页https://username.github.io了

2. doDaddy域名购买

国外的更加可控些,自主性高, godaddy https://sg.godaddy.com/zh/

2.1. 网址后缀

.com 第一代全球顶级域名

.cn 中国顶级域名

.vip和com同一级 联想到vip会员,贵宾 好像比较高端

还有好多域名,也是不懂,就选个.com

2.2. 购买

创建的域名没有被注册过就可以购买了

加入购物车后注册,登录后购买

runaccpeted

支持支付宝付款

3. Dnspod域名解析

https://www.dnspod.cn/Login?default=email

用dnspod获得DNS服务提供商。

可用微信登录免费使用,域名解析,添加刚刚购买的域名。点击域名添加记录。

再次前往godaddy网 管理

定位到域名服务器添加域名服务器f1g1ns1.dnspod.net,f1g1ns2.dnspod.net保存

3.1. 添加A记录

又称IP指向,可以在此设置子域名并指向到自己的目标主机地址上,从而实现通过域名找到服务器。

主机记录:@将直接解析 xxx.com;www 解析 www.xxx.com

记录类型:A 将域名指向一个IPv4地址;CNAME 将域名指向另一个域名

记录值:记录类型为A 在终端ping https://username.github.io 获得网站的IP值

记录类型为CNAME,直接输入username.github.io

4. brew安装

1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

5. Github与域名关联

回到github仓库->setting->GitHub Pages 输入刚刚购买的域名xxx.com 或 www.xxx.com 点击Save 个人网站就创建好了。点击网址就搭建成功了。

6. 安装git

1
2
3
4
5
6
brew install git

git config --global user.name "yourname"
git config --global user.email "youremail"

ssh-keygen -t rsa -C "youremail"

这个时候它会告诉你已经生成了.ssh的文件夹。在你的电脑中找到这个文件夹。/Users/Learning/.ssh/

ssh,简单来讲,就是一个秘钥,其中,id_rsa是你这台电脑的私人秘钥,不能给别人看的,id_rsa.pub是公共秘钥,可以随便给别人看。把这个公钥放在GitHub上,这样当你链接GitHub自己的账户时,它就会根据公钥匹配你的私钥,当能够相互匹配时,才能够顺利的通过git上传你的文件到GitHub上。

而后在GitHub的setting中,找到SSH keys的设置选项,点击New SSH key
把你的id_rsa.pub里面的信息复制进去。

1
ssh -T git@github.com

检查是否匹配

7. 安装hexo

1
2
brew install nodejs
brew install npm

安装在/usr/local/Cellar/node/13.8.0

是否已安装

1
2
nodejs -v
npm -v

创建一个文件夹myblog,然后cd到这个文件夹下

1
npm install -g hexo-cli

初始化

1
2
3
4
hexo init myblog

cd myblog
npm install

新建完成后,指定文件夹目录下有:

  • node_modules: 依赖包
  • public:存放生成的页面
  • scaffolds:生成文章的一些模板
  • source:用来存放你的文章
  • themes:主题
  • ** _config.yml: 博客的配置文件**
1
2
hexo g
hexo server

打开hexo的服务,在浏览器输入localhost:4000就可以看到你生成的博客了。

7.1. 安装自定义主题

1
2
cd myblog/themes
git clone https://github.com/theme-next/hexo-theme-next next

修改配置文件_config.yml

1
theme: next

7.2. 部署到GitHub

修改_config.yml

1
2
3
4
5
6
deploy:
type: git
repo:
github:
git@github.com:helloworld1006/helloworld1006.github.io.git
branch: master

终端

1
2
3
4
npm install hexo-deployer-git --save
hexo clean
hexo g
hexo d

8. hexo基本配置

8.1. _config.yml

在文件根目录下的_config.yml,就是整个hexo框架的配置文件

参数 描述
title 网站标题
subtitle 网站副标题
description 网站描述
author 您的名字
language 网站使用的语言
timezone 网站时区。Hexo 默认使用您电脑的时区。时区列表。比如说:America/New_York, Japan, 和 UTC

其中,description主要用于SEO,告诉搜索引擎一个关于您站点的简单描述,通常建议在其中包含网站的关键词。author参数用于主题显示文章的作者

参数 描述
url 网址, 把url改成你的网站域名
root 网站根目录
permalink 文章的 永久链接 格式
permalink_defaults 永久链接中各部分的默认值

新建一个文章叫temp.md,那么这个时候他自动生成的地址就是http://yoursite.com/2018/09/05/temp

链接的变量还有很多

参数 结果
:year/:month/:day/:title/ 2013/07/14/hello-world
:year-:month-:day-:title.html 2013-07-14-hello-world.html
:category/:title foo/bar/hello-world

8.2. layout(布局)

当你每一次使用代码hexo new paper,其实默认使用的是post这个布局,也就是在source文件夹下的_post里面

Hexo 有三种默认布局:post、page 和 draft,它们分别对应不同的路径,而您自定义的其他布局和 post 相同,都将储存到 source/_posts 文件夹。

布局 路径
post source/_posts
page source
draft source/_drafts

8.2.1. post

hexo new [layout] <title>默认是post

8.2.2. page

如果你想另起一页,那么可以使用hexo new page books,系统会自动给你在source文件夹下创建一个board文件夹 ,以及board文件夹中的index.md,这样你访问的board对应的链接就是http://xxx.xxx/books`

8.2.2.1. 在菜单中添加链接

编辑主题的_config.yml,在menu中的添加

menu: books: /books/ || book

||之前的值是目标链接,之后的是分类页面的图标,图标名称来自于FontAwesome icon。若没有配置图标,默认会使用问号图标。

8.2.2.2. 新添加的菜单需要翻译对应的中文

打开hexo>theme>next>languages>zh-Hans.yml,在menu下添加:

menu: books:书单

8.2.3. draft

  • draft是草稿的意思,也就是你如果想写文章,又不希望被看到hexo new draft newpage,会在source/_draft中新建一个newpage.md文件

  • 草稿文件写的过程中,想要预览一下,那么可以使用hexo server --draft,在本地端口中开启服务预览

  • 草稿文件写完了,想要发表到post中,hexo publish draft newpage会自动把newpage.md发送到post中。

9. 美化next主题

9.1. 文章中插入本地图片

使用hexo new命令创建新文章时,会生成相同名字的文件夹,且在同一个文件夹下

1
npm i hexo-renderer-marked

在 根目录的 _config.yml中修改

1
post_asset_folder: true

安装插件

1
npm i hexo-asset-image

在文章中使用本地路径插入图片

1
![](/test.jpg)

生成的图片路径存在问题

1
update link as:-->/.io//test.jpg

查看hexo-asset-image源代码,/node_modules/hexo-asset-image/index.js,大约13行

1
2
3
4
5
6
7
8
9
10
// var beginPos = getPosition(link, '/', 3) + 1;
var appendLink = '';
if(/.*\/index\.html$/.test(link)) {
appendLink = 'index/';
var endPos = link.lastIndexOf('/');
}
else {
var endPos = link.lastIndexOf('.');
}
link = link.substring(beginPos, endPos) + appendLink;

修改为

1
2
3
4
5
6
7
var beginPos = config.url.length + 1;
var appendLink = '';
if(/.*\/index\.html$/.test(link)) {
appendLink = '/index/';
var endPos = link.lastIndexOf('/');
}
link = link.substring(beginPos, endPos) + appendLink;

9.2. fork me on github

next/_config.yml

1
2
3
4
5
# Follow me on GitHub banner in right-top corner.
github_banner:
enable: true
permalink: https://github.com/yourname
title: Follow me on GitHub

9.3. 安装RSS

cd 进入到博客根目录blog

运行命令

1
npm install --save hexo-generator-feed

插件会安装在node_modules下

安装插件错误

1
2
3
4

npm WARN babel-eslint@10.0.3 requires a peer of eslint@>= 4.12.1 but none is installed. You must install peer dependencies yourself.
✔️
npm install --save-dev eslint eslint-plugin-node

根目录中的_config.yml中添加

1
2
3
# Extensions
## Plugins: http://hexo.io/plugins/
plugins: hexo-generate-feed

next主题文件夹中的_config.yml的rss中添加内容

1
2
3
4
# Set rss to false to disable feed link.
# Leave rss as empty to use site's feed link.
# Set rss to specific value if you have burned your feed already.
rss: /atom.xml

hexo clean g server –> 在./public 文件夹中看到 atom.xml 文件

9.4. 动态背景

https://github.com/theme-next/theme-next-canvas-nest

1
git clone https://github.com/theme-next/theme-next-canvas-nest source/lib/canvas-nest

next主题文件夹下

1
2
3
4
5
6
7
canvas_nest:
enable: true
onmobile: true # display on mobile or not
color: '0,0,255' # RGB values, use ',' to separate 颜色
opacity: 0.5 # the opacity of line: 0~1 透明度
zIndex: -1 # z-index property of the background 显示层次
count: 99 # the number of lines 个数

9.5. 本文结束🔚

在路径 \themes\next\layout\_macro\post.swig ,post-body 之后添加以下内容

1
2
3
4
5
6
<div>
{% if not is_index %}
<div style="border-top: 1px dashed #b3a9a7;text-align:center;color: #ccc;font-size:20px;">
本文结束&nbsp;<i class="fa fa-smile-o"></i>&nbsp;感谢您的阅读</div>
{% endif %}
</div>

9.6. 社交小图标

图标库中寻找图标

1
2
3
social:
GitHub: https://github.com/yourname || github
E-Mail: mailto:yourname@gmail.com || envelope

9.7. 图标

https://www.easyicon.net/language.en/1227806-binary_code_icon.html

1
2
3
favicon:
small: /images/favicon-16.ico
medium: /images/favicon-32.ico

9.8. 阅读统计

1
npm install hexo-symbols-count-time --save

根目录_config.yml

1
2
3
4
5
6
7
symbols_count_time:
#文章内是否显示
symbols: true
time: true
# 网页底部是否显示
total_symbols: true
total_time: true

主题目录_config.yml

1
2
3
4
5
6
7
8
9
10
11
12
# Post wordcount display settings
# Dependencies: https://github.com/theme-next/hexo-symbols-count-time
symbols_count_time:
separated_meta: true
#文章中的显示是否显示文字(本文字数|阅读时长)
item_text_post: true
#网页底部的显示是否显示文字(站点总字数|站点阅读时长)
item_text_total: false
# Average Word Length (chars count in word)
awl: 4
# Words Per Minute
wpm: 275

awl Average Word Length (chars count in word). Default:4

  • CN ≈ 2
  • EN ≈ 5
  • RU ≈ 6

wpm– Words Per Minute. Default:275

  • Slow ≈ 200
  • Normal ≈ 275
  • Fast ≈ 350

9.9. 每篇文章末尾统一添加“本文结束”标记

具体实现方法

在路径 \themes\next\layout\_macro 中新建 passage-end-tag.swig 文件,并添加以下内容:

1
2
3
4
5
<div>
{% if not is_index %}
<div style="margin-top:30px;padding-top:20px;border-top: 1px dashed #b3a9a7;text-align:center;color: #ccc;font-size:20px;">本文结束&nbsp;<i class="fa fa-paw"></i>&nbsp;感谢您的阅读</div>
{% endif %}
</div>

接着打开\themes\next\layout\_macro\post.swig文件,在post-body 之后, post-footer 之前添加如下画红色部分代码(post-footer之前两个DIV):

1
<div>  {% if not is_index %}    {% include 'passage-end-tag.swig' %}  {% endif %}</div>

然后打开主题配置文件(_config.yml),在末尾添加:

1
2
3
# 文章末尾添加“本文结束”标记
passage_end_tag:
enabled: true

完成以上设置之后,在每篇文章之后都会添加如上效果图的样子。


9.10. 文章底部版权信息©️

⁨themes⁩ /⁨next⁩/layout/_partials/post/post-copyright.swig

Hexo 页面参数

https://hexo.io/zh-cn/docs/variables.html#%E9%A1%B5%E9%9D%A2%E5%8F%98%E9%87%8F

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="post-copyright">
<ul>
<li class="post-copyright-author">
{%- if page.author %}
<strong>{{ __('post.copyright.post_author') + __('symbol.colon') }} </strong>
{{- page.author }}
{%- elif author %}
<strong>{{ __('post.copyright.author') + __('symbol.colon') }} </strong>
{{- author }}
{%- endif %}
</li>
<li class="post-copyright-link">
{%- set path = '/'+page.path %}
{%- if page.post_link %}
<strong>{{ __('post.copyright.post_link') + __('symbol.colon') }}</strong>
<!-- {{ next_url(page.post_link, page.post_link, {title: page.title}) }}-->
<a href ="{{path}}" >{{path}}</a>
{%- else %}
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
<!-- {{ next_url(page.permalink, page.permalink, {title: page.title}) }} -->

<a href ="{{path}}" >{{path}}</a>
{%- endif %}
</li>
{%- if page.lang !=='en'%}
<li>
<strong>{{ __('发布时间') + __('symbol.colon') }}</strong>
{{ page.date.format("YYYY-MM-DD HH:mm") }}
</li>
<li>
<strong>{{ __('更新时间') + __('symbol.colon') }}</strong>
{{ page.updated.format("YYYY-MM-DD HH:mm") }}

</li>
{% else %}
<li>
<strong>{{ __('Posted on') + __('symbol.colon') }}</strong>
{{ page.date.format("YYYY-MM-DD HH:mm") }}
</li>
<li>
<strong>{{ __('Updated at') + __('symbol.colon') }}</strong>
{{ page.updated.format("YYYY-MM-DD HH:mm") }}
</li>
{%- endif%}
<li class="post-copyright-license">
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
{{- __('post.copyright.license_content', next_url(ccURL, ccIcon + ccText)) }}
</li>
</ul>
</div>

themes⁩ /⁨next⁩/source/⁨css⁩/ ⁨_common⁩/components⁩/⁨post⁩/post-copyright.styl

1
2
3
4
5
6
7
8
9
.post-copyright ul {
font-size: 0.93rem;
background-color: #f9f9f9;
border-left: 3px solid #ff1700;
list-style: none;
margin: 2em 0 0;
padding: .5em 1em;
}

每个博文 /scaffolds/post.md

这样每次hexo new "你的内容"之后,生成的md文件会自动把copyright:加到里面去

1
2
3
4
5
title: {{ title }}
date: {{ date }}
tags:
categories:
copyright:

9.11. 阅读次数👀&评论💬

leancloud

需要实名注册

9.11.1. 配置

创建一个新的应用

设置 > 安全中心 > 服务开关仅打开数据存储 添加网站到Web安全域名

设置 > 应用Key > 复制App ID, App Key

\themes\next_config.yml中查找Valine 添加 App ID, App Key

1
2
3
4
5
6
valine:
enable: true
appid:
appkey:
placeholder: 撰写评论
avatar: mm

9.11.2. placeholder

同html中

9.11.3. avatar 头像

Gravatar官方图形

mm- 神秘人

indenticon 抽象几何图形

monsterid- 小怪物

wavatar- 不同面孔和背景组合生成

retro-八位像素复古头像

9.11.4. 创建Counter,Comment

存储 > 创建Class > 无限制 > Counter,Comment

9.11.5. ❌评论未显示

next\_config.yml 和next\layout_third-party\comments\valine.swig中变量不对应

valine.swig

1
2
appId: '{{ theme.valine.appid }}',
appKey: '{{ theme.valine.appkey }}',

_config.yml

1
2
appid:  
app_key:

9.11.6. ⚠️加载慢–修改CDN

next\_config.yml查找Valine

1
2
3
4
5
# Valine
# Example:
# valine: //cdn.jsdelivr.net/npm/valine@1/dist/Valine.min.js
# valine: //cdnjs.cloudflare.com/ajax/libs/valine/1.3.4/Valine.min.js
valine:

获取最新版Valinecdn地址,下载到本地hexo/source/js/Valine.min.js

添加地址

1
valine: /js/Valine.min.js

9.11.7. Gravatar

简介:

Gravatar是一图像跟随著您到访过的网站,当您在博客中留言或发表文章,它将会出现在您的名称旁。头像协助识别您在博客和论坛发表的文章,何乐而不为呢?

在官网进行注册

配置:

next\_config.yml查找Valine

avatar: 为空

1
2
3
Valine:  
avatar:
avatar_cdn: https://www.gravatar.com/avatar/

valine.swig

1
avatar_cdn: '{{ theme.valine.avatar_cdn }}'

加载慢⚠️

改镜像

1
2
3
4
5
function ssl_avatar($avatar) {
$avatar = preg_replace('/.*\/avatar\/(.*)\?s=([\d]+)&.*/','<img src="https://secure.gravatar.com/avatar/$1?s=$2" class="avatar avatar-$2" height="$2" width="$2">',$avatar);
return $avatar;
}
add_filter('get_avatar', 'ssl_avatar');

9.12. 字体大小

/next/source/css/_variables/base.styl

1
2
// Font size
$font-size-base = 16px

9.13. 改变背景样式

source/css/_schemes/Picses/_layout.styl

1
2
3
header{ width: 90%; }
.container .main-inner { width: 90%; }
.content-wrap { width: calc(100% - 260px); }

9.14. 修改文章高亮部分样式

next/source/css/_common/scaffolding/base.styl中显示

1
2
3
4
::selection {
background: $selection-bg;
color: $selection-color;
}

打开 next/source/css/_variables/base.styl 修改样式

1
2
3
// Selection
$selection-bg = #b8adab;
$selection-color = #f7f7f7;

next/source/css/_common/components/post/post.syl中添加如下代码

1
2
3
4
5
6
/*文章中高亮文字样式*/
code {
color: #df6d5b;
background: #fbf7f8;
margin: 2px;
}

9.15. 添加 README.md 文件

每个项目下一般都有一个 README.md 文件,但是使用 hexo 部署到仓库后,项目下是没有 README.md 文件的。

在 Hexo 目录下的 source 根目录下添加一个 README.md 文件,修改站点配置文件 _config.yml,将 skip_render 参数的值设置为

1
skip_render: README.md

保存退出即可。再次使用 hexo d 命令部署博客的时候就不会在渲染 README.md 这个文件了。

9.16. 使文章目录编号手动添加

themes/next/_config.yml 将number值改为false

1
2
3
4
5
# Table Of Contents in the Sidebar
toc:
enable: true
# Automatically add list number to toc.
number: false

themes/next/layout/_marco/sidebar.swig中编号的显示通过判断

1
{%- set next_toc_number = page.toc_number | default(theme.toc.number) %}

故在文章中通过添加toc_number:true来手动添加该文章的目录编号

9.17. 自动生成文章标题编号

https://github.com/r12f/hexo-heading-index

1
$ npm install hexo-heading-index --save

在hexo根目录

1
2
3
4
5
6
7
#标题编号
heading_index:
enable: true
index_styles: "{1} {1} {1} {1} {1} {1}"
connector: "."
global_prefix: ""
global_suffix: ". "

生成后的字体很大,修改样式

next/source/css/_common/scaffolding/base.styl

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
for headline in (1 .. 6) {
/*h{headline} {
font-size: $font-size-headings-base - $font-size-headings-step * headline;
}*/
h1{
/*border-bottom: 1px solid #eee;*/
font-size: 1.25em;
}
h2{
font-size: 1.15em;
}
h3{
font-size: 1.05em;
}
h4,h5,h6{
font-size: 1em;
}
}

9.18. 修改文章链接样式

修改文件 themes\next\source\css\_common\components\post\post.styl,在末尾添加如下css样式,:

1
2
3
4
5
6
7
8
9
/* 文章内链接文本样式*/
p a:hover{
color: #f0733b;
border-bottom: 1px solid #f0733b;
}
p a{
color: #0593d3;
border-bottom: 1px solid #0593d3;
}

9.19. 文章加密

9.19.1. 低级

next/layout/custom/head.swig

添加

1
2
3
4
5
6
7
8
(function () {
if ('{{ page.password }}') {
if (prompt('请输入文章密码') !== '{{ page.password }}') {
alert('密码错误!');
history.back();
}
}
})();

实现的是低级加密方式,可能被破解。博客源码是存放在GitHub这样的开源库的话,别有用心之人可以通过查看仓库对应文章的md文件找到这个密码

9.19.2. 高级

https://github.com/MikeCoder/hexo-blog-encrypt

1
npm install --save hexo-blog-encrypt

在文章中添加password

1
2
3
4
5
6
---
title: 文章加密
password: 是该博客加密使用的密码
abstract: 是该博客的摘要,会显示在博客的列表页
message: 这个是博客查看时,密码输入框上面的描述性文字
---

该文章就可以加密访问

修改样式:

在根目录的_config.yml添加

1
2
3
4
5
6
# 安全
encrypt: # hexo-blog-encrypt
enable: true
abstract: <blockquote class="blockquote-center">这是一篇加密文章,内容可能是个人情感宣泄。如果你确实想看,请与我联系。</blockquote>
message: 输入密码,查看文章。
wrong_pass_message: 抱歉, 这个密码看着不太对, 请再试试.

9.20. 文章置顶

修改 hero-generator-index 插件,把文件:node_modules/hexo-generator-index/lib/generator.js 内的代码替换为:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'use strict';
var pagination = require('hexo-pagination');
module.exports = function(locals){
var config = this.config;
var posts = locals.posts;
posts.data = posts.data.sort(function(a, b) {
if(a.top && b.top) { // 两篇文章top都有定义
if(a.top == b.top) return b.date - a.date; // 若top值一样则按照文章日期降序排
else return b.top - a.top; // 否则按照top值降序排
}
else if(a.top && !b.top) { // 以下是只有一篇文章top有定义,那么将有top的排在前面(这里用异或操作居然不行233)
return -1;
}
else if(!a.top && b.top) {
return 1;
}
else return b.date - a.date; // 都没定义按照文章日期降序排
});
var paginationDir = config.pagination_dir || 'page';
return pagination('', posts, {
perPage: config.index_generator.per_page,
layout: ['index', 'archive'],
format: paginationDir + '/%d/',
data: {
__index: true
}
});
};

在文章中添加 top 值,数值越大文章越靠前,如

1
2
3
4
---
title:
top: 100
---

置顶的文章显示在最上面之后,如果没有明确的置顶标志

添加样式为

/themes/next/layout/_macro 目录下的post.swig文件,定位到<div class="post-meta">标签下,插入如下代码:

1
2
3
4
5
6
7
8
9
{% if post.top %}
<i class="fas fa-thumbtack" style="margin: 8px 5px 0px 0px;"></i>
{%- if page.lang=='en' %}
<font>Top</font>
{%- else %}
<font>置顶</font>
{%- endif%}
<span class="post-meta-divider"></span>
{% endif %}

9.21. 为博客加上萌萌的宠物

1
$ npm install -save hexo-helper-live2d

安装模版

1
npm install --save live2d-widget-model-wanko

然后在 hexo_config.yml中添加参数

参数列表 https://l2dwidget.js.org/docs/class/src/index.js~L2Dwidget.html#instance-method-init

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
live2d:
enable: true
scriptFrom: local
pluginRootPath: live2dw/ # 插件在站点上的根目录(相对路径)
pluginJsPath: lib/ # 脚本文件相对与插件根目录路径
pluginModelPath: assets/ # 模型文件相对与插件根目录路径
tagMode: false # 标签模式, 是否仅替换 live2d tag标签而非插入到所有页面中
debug: false # 调试, 是否在控制台输出日志
model:
use: live2d-widget-model-wanko # npm-module package name
# use: wanko /live2d_models/live2d-widget-model-wanko
# use: ./node_modules/live2d-widget/src/lib/live2d-widget-model-wanko/assets/wanko.model.json # 相对于博客根目录的路径
# use: lib/live2d-widget-model-wanko/assets/wanko.model.json # 你的自定义 url
display:
position: right
width: 125
height: 290
hOffset: -15 # 水平偏移
vOffset: -40 #垂直偏移
mobile:
show: true
scale: 0.5 # 移动设备上的缩放
react:
opacity: 0.7
dialog:
enable: false
hitokoto: false

实现

本文结束  感谢您的阅读
  • 本文作者: Wang Ting
  • 本文链接: /zh-CN/2018/07/01/hexo网站搭建/
  • 发布时间: 2018-07-01 09:35
  • 更新时间: 2023-04-15 21:29
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!