Fork me on GitHub

hexo next 主题设置

自定义next主题

参考文档:http://theme-next.iissnan.com/
http://theme-next.iissnan.com/getting-started.html

  • 指定404页面
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<html lang="en">
<head>]\
<meta charset="UTF-8">
<title>404</title>
</head>
<body>
<script type="text/javascript" src="http://www.qq.com/404/search_children.js" charset="utf-8"></script>
</body>
</html>
  • 安装本地搜索
1
2
3
4
5
6
7
npm install hexo-generator-search --save
# search
## Docs:https://github.com/PaicHyperionDev/hexo-generator-search
search:
path: search.xml
field: all
  • 网站底部字数统计
1
2
3
4
5
6
在(博客主目录) /themes/next/layout/_partials/footer.swig 中最后加上
<div class="theme-info">
<div class="powered-by"></div>
<span class="post-count">博客全站共{{ totalcount(site) }}字</span>
</div>
  • atom
1
npm install hexo-generator-feed --save
1
用文本编辑器打开主题配置_config.yml文件,搜索"auto_excerpt",false --> true
Insist on the original technology sharing, your support will encourage me to continue to create!