我的博客:凌霄的博客css
在主题配置文件
中找到:git
seo: false
将其设置为true
github
自动提交:npm
打开主题配置文件,找到 baidu_push
,将其设置为 true
hexo
baidu_push: true
首先安装两个插件:优化
npm install hexo-generator-sitemap --save npm install hexo-generator-baidu-sitemap --save
而后打开百度站长平台spa
添加插件
http://lx.nextdev.top/baidusitemap.xml http://lx.nextdev.top/sitemap.xml
robots.txt
# hexo robots.txt User-agent: * Allow: / Allow: /archives/ Disallow: /vendors/ Disallow: /js/ Disallow: /css/ Disallow: /fonts/ Disallow: /vendors/ Disallow: /fancybox/ Sitemap: 你的域名/sitemap.xml Sitemap: 你的域名/baidusitemap.xml
放在博客/source/
目录下code
no follow
属性:打开博客\themes\next\layout\_partials\footer.swig
文件
给下列连接加上no follow
属性:xml
{{ __('footer.powered', '<a class="theme-link" href="http://hexo.io">Hexo</a>') }}
<a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
打开博客\themes\next\layout_macro
,将下面代码中的a标签加no follow
属性:
<a href="{{ link }}" target="_blank">{{ name }}</a>
<a href="http://creativecommons.org/licenses/{{ theme.creative_commons }}/4.0" class="cc-opacity" target="_blank">
打开 your-hexo-site\themes\next\layout\index.swig
,将下面代码:
{% block title %} {{ config.title }} {% endblock %}
改成
{% block title %} {{ config.title }} - {{ theme.description }} {% endblock %}
欢迎评论