搜索
您的当前位置:首页正文

hexo的NexT主题配置

来源:知库网

NexT主题配置


-------所写文章力求精简,旨在全面,难免遗漏,请多指点!

添加「标签」页面

新建页面

$ cd your-hexo-site$ hexo new page tags

设置页面类型编辑之前心间的标签页面,内容如下:

title: 标签
date: 2014-12-22 12:39:04
type: "tags"---

修改菜单编辑 主题配置文件 themes/_config.yml,内容如下:

menu: 
home: / 
archives: /archives 
tags: /tags

添加「分类」页面

设置步骤同 设置标签步骤

设置代码高亮主题

编辑 主题配置文件 themes/_config.yml,内容如下:

highlight_theme: normal

侧栏社交链接

编辑 主题配置文件 themes/_config.yml

设置链接

 #Social link
ssocial: GitHub:  
微博:  
# 等等

设置图标

# Social Icon
ssocial_icons:
 enable: true 
# Icon Mappings
 GitHub: github 
Twitter: twitter 
微博: weibo

设置打赏功能编辑 主题配置文件 themes/_config.yml

reward_comment: 坚持原创技术分享,您的支持将鼓励我继续创作!
wechatpay: 
alipay: 

设置友情链接编辑 主题配置文件 themes/_config.yml

# title
links_title: Links
links: MacTalk:  
Title: 

腾讯公益404页面在themes/source目录下新建404页面,内容如下:

<!DOCTYPE HTML>
<html>
<head>
 <meta http-equiv="content-type" content="text/html;charset=utf-8;"/>
 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
 <meta name="robots" content="all" /> <meta name="robots" content="index,follow"/>
</head>
<body>
<script type="text/javascript"  charset="utf-8" homePageUrl="your site url " homePageName="回到我的主页"></script>
</body>
</html>

站点建立时间编辑 主题配置文件 themes/_config.yml

since: 2013
Top