效果预览:Next6.7.0主题个人博客
$ cd your-hexo-site
$ git clone https://github.com/iissnan/hexo-theme-next themes/next
theme: next
注意:所有配置文件内,每一项配置的冒号后面都要加上空格
# next主题配置文件中配置选用的主题
# scheme: Muse
#scheme: Mist
# scheme: Pisces
scheme: Gemini
language: zh-Hans next5版本
language: zh-CN next6版本
menu:
home: / || home
about: /about/ || user
tags: /tags/ || tags
categories: /categories/ || th
archives: /archives/ || archive
themes/next/source/images
下,修改avatar01
# Sidebar Avatar
avatar:
# in theme directory(source/images): /images/avatar.gif
# in site directory(source/uploads): /uploads/avatar.gif
# You can also use other linking images.
url: /images/avatar01.jpg
# Site
title: Chris
subtitle: 步履不停
description: how much you wanna risk
标签
目录的需要自己创建$ cd you-site
$ hexo new page tags
you-site/source/tags
的index.md
,修改如下---
title: #页面主题
date: 2017-08-18 15:00:55 #当前创建文件时间
type: "tags" # 设置页面类型
---
分类
目录的需要自己创建$ cd you-site
$ hexo new page categories
you-site/source/tags
的index.md
,修改如下---
title: #页面主题
date: 2017-08-18 15:00:55 #当前创建文件时间
type: "categoriess" # 设置页面类型
---
type、categories、copyright
your site/scaffolds/post.md
文件---
title: {{ title }}
date: {{ date }}
tags:
categories:
copyright: true
---
,搜索关键字
social`,然后添加社交站点名称与地址即可。# Social links
social:
GitHub: https://github.com/your-user-name
Twitter: https://twitter.com/your-user-name
Weibo: https://weibo.com/your-user-name
douban: https://douban.com/people/your-user-name
zhihu: https://www.zhihu.com/people/your-user-name
# 等等
文件,搜索关键字
social_icons`,添加社交站点名称(注意大小写)图标,Font Awesome图标地址social_icons:
enable: true
icons_only: false
transition: false
GitHub: github
Twitter: twitter
Weibo: weibo
Hexo 站点
目录下$ npm install hexo-generator-feed --save
plugin
- hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20
,搜索关键字
scrollpercent,把
false改为
true` # Scroll percent label in b2t button
scrollpercent: true
top
按钮放在侧边栏
,打开主题配置文件,搜索关键字
b2t,把
false改为
true` # Back to top in sidebar
b2t: true
# Scroll percent label in b2t button
scrollpercent: true
codeblock:
copy_button:
enable: true #增加复制按钮的开关
show_result: true #点击复制完后是否显示 复制成功 结果提示
themes/next
下的_config.yml
,搜索关键字pace
,设置为true
,可以更换加载样式# Progress bar in the top during page loading.
pace: true
# Themes list:
#pace-theme-big-counter
#pace-theme-bounce
#pace-theme-barber-shop
#pace-theme-center-atom
#pace-theme-center-circle
#pace-theme-center-radar
#pace-theme-center-simple
#pace-theme-corner-indicator
#pace-theme-fill-left
#pace-theme-flash
#pace-theme-loading-bar
#pace-theme-mac-osx
#pace-theme-minimal
# For example
# pace_theme: pace-theme-center-simple
pace_theme: pace-theme-flash #替换更换样式
/themes/next/layout/_macro/post.swig
,搜索 rel="tag">#
,将 # 换成
motion
下的enable
参数设置为false
即可关闭页面动画motion:
enable: false
hm.js?
后面那串统计脚本 id# Baidu Analytics ID
baidu_analytics: xxxxxxxxxxxxxx
busuanzi_count:
enable: false #设true 开启
total_visitors: true #总阅读人数 uv数
total_visitors_icon: user #阅读总人数的图标
total_views: true #总阅读次数 pv数
total_views_icon: eye #阅读总次数的图标
post_views: true #开启内容阅读次数
## post_views_icon: eye #内容页阅读数的图标
详见:不蒜子|不如
$ npm install hexo-symbols-count-time --save
symbols_count_time:
separated_meta: true # false 会显示一行
item_text_post: true # 显示属性名称,设为false后只显示图标和统计数字,不显示属性的文字
item_text_total: true #底部footer是否显示字数统计属性文字
awl: 4 #计算字数的一个设置,没设置过
wpm: 275 #一分钟阅读的字数
symbols_count_time:
#文章内是否显示
symbols: true
time: true
# 网页底部是否显示
total_symbols: true
total_time: true
valine:
enable: false # When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version.
appid: # your leancloud application appid
appkey: # your leancloud application appkey
notify: false # mail notifier, See: https://github.com/xCss/Valine/wiki
verify: false # Verification code
placeholder: Just go go # comment box placeholder
avatar: mm # gravatar style
guest_info: nick,mail,link # custom comment header
pageSize: 10 # pagination size
visitor: false # leancloud-counter-security is not supported for now. When visitor is set to be true, appid and appkey are recommended to be the same as leancloud_visitors' for counter compatibility. Article reading statistic https://valine.js.org/visitor.html
comment_count: true # if false, comment count will only be displayed in post page, not in home page
---
title: #页面主题
date: 2017-08-18 15:00:55 #当前创建文件时间
type: "tags" # 设置页面类型
comments: false
---
修改主题配置文件如下:
creative_commons: #设置版权原创声明的地方
license: by-nc
sidebar: false
post: true