如何让搜索引擎收录我们的博客

开始

向各个大型搜索引擎提交我们的博客
原文地址:
谷歌博客搜索收录入口:
百度收录入口:
百度博客收录入口:
必应Bing收录入口:
搜索引擎批量提交:
soso收录入口:
360搜索引擎登录入口:
搜狗提交入口:
盘古数据开放平台:
简搜搜索引擎登陆口:
雅虎中国网站登录口:
网易有道搜索引擎登录口:
中搜免费登录服务:
MSN必应网站登录口:
Alexa网站登录入口:
TOM搜索网站登录口:
铭万网B2B(必途)网址登陆口:
蚁搜搜索网站登录口:
快搜搜索网站登录口:
汕头搜索登录口:
孙悟空搜索网站登录:
天网网站登陆口:
速搜全球登陆口:
酷帝网站目录提交入口:
快搜网站登陆口:
搜猫搜索引擎登录入口:
泽许搜索网站登录入口:
一淘网开放搜索申请入口:

hexo 首页title优化

更改index.swig文件\themes\next\layout;

{% block title %} {{ config.title }} {% endblock %}

修改为

{% block title %}{{ config.title }}{% if theme.index_with_subtitle and config.subtitle %} - {{config.subtitle }}{% endif %}{% endblock %}

设置站点地图

安装sitemap站点地图自动生成插件

npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save

在站点配置文件中添加一下配置(_config.yml)

sitemap:
  path: sitemap.xml
baidusitemap:
  path: baidusitemap.xml

在hexo\source中新建文件robots.txt,内容可以参照我的

# hexo robots.txt
User-agent: * 
Allow: /

Allow: /archives/
Allow: /categories/
Allow: /tags/ 
Disallow: /js/
Disallow: /css/
Disallow: /fonts/
Disallow: /vendors/

Disallow: /categories/



Sitemap: https://123love123.github.io/sitemap.xml

Sitemap: https://123love123.github.io/baidusitemap.xml

这个文件会随着每次修改配置文件而修改

百度链接优化

百度站长平台sitemap提交是邀请制的,并没有对所有站长开放,只有网站到一定等级百度才会在你后台开放提交sitemap的入口。
1.站点验证
百度优化
百度搜索引擎提交入口

百度搜索有三种验证方式,我选择Html标签验证,在themes\next\layout\_partials\head.swing中添加验证代码:

<!--百度链接优化-->
<meta name="baidu-site-verification" content="kGRhxO8VFL" />

谷歌链接优化

注册Google Search Console,添加你的域名后
seo_15.png
进行站点验证,验证的方式和百度的方式相同
g05.png

设置关键字

在博客根目录下找到 config.yml 文件,在所示地方添加keywords: 关键字1,关键字2,关键字3…,采用英文逗号隔开,注意keywords与关键词之间的空格
公众,dasha500,,大傻的博客,java,hexo,git

添加 “nofollow” 标签

地址 : \themes\next\layout_partials\footer.swig 文件中以下代码修改

rel="external nofollow"

rel这个属性它有许多的属性值,
比如next、previous,、chapter、 section等等,
比较常见的是rel=”external nofollow”与rel=”nofollow”两种参数的应用!

rel=”nofollow”属性是谷歌为了应对垃圾链接而引入的一个属性值,被各大搜索引擎引用!
rel=”external nofollow”只是更相对于rel=”nofollow”参数更加规范一些而已!

rel=”external nofollow”与rel=”nofollow”其功能就中文译文”不要读取” 及”外部链接不要读取”的意思!

{ __('footer.powered', '<a class="theme-link" target="_blank" href="http://www.trhsy.top" rel="external nofollow">trhsy</a>')

<a class="theme-link" target="_blank" href="https://shop155378470.taobao.com/" rel="external nofollow">

<a href="{{ link }}" target="_blank">{{ name }}</a>
->
<a href="{{ link }}" target="_blank" rel="external nofollow">{{ name }}</a>

<a href="https://creativecommons.org/{% if theme.creative_commons === 'zero' %}publicdomain/zero/1.0{% else %}licenses/{{ theme.creative_commons }}/4.0{% endif %}/" class="cc-opacity" target="_blank">
->
<a href="{{ link }}" target="_blank" rel="external nofollow">{{ name }}</a>

<a href="https://creativecommons.org/{% if theme.creative_commons === 'zero' %}publicdomain/zero/1.0{% else %}licenses/{{ theme.creative_commons }}/4.0{% endif %}/" class="cc-opacity" target="_blank" rel="external nofollow">

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

无与伦比的傻

微信公众号:dasha500

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值