增加RSS功能
-
安装RSS插件
注意一定要安装到blog的根目录
npm install --save hexo-generator-feed
-
在你的项目的‘_config.yml‘配置文件下找到Extensions添加如下内容:
# Extensions #插件和主题
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
#RSS订阅
plugins: hexo-generater-feed
- 在主题配置文件里,在rss位置,添加‘/atom.xml‘
- 刷新页面
更换到百度统计
- 注册一个百度统计账号
- 网站域名:用博客首页链接
- 网站首页:用博客首页链接
- hexo\themes\yilia\layout_partial\baidu-analytics.ejs中修改代码
<% if (theme.baidu_tongji){ %>
<script type="text/javascript">
#你的百度统计代码
</script>
<% } %>
- 在hexo\themes\yilia\layout_partial\head.ejs文件中,在前增加
<%- partial('baidu-analytics') %>