惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
Recorded Future
Recorded Future
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
N
News | PayPal Newsroom
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Help Net Security
Help Net Security
博客园 - Franky
SecWiki News
SecWiki News
Recent Announcements
Recent Announcements
T
Troy Hunt's Blog
The Register - Security
The Register - Security
The Last Watchdog
The Last Watchdog
Webroot Blog
Webroot Blog
S
Security Affairs
博客园 - 司徒正美
S
Schneier on Security
I
InfoQ
博客园_首页
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threat Research - Cisco Blogs
Forbes - Security
Forbes - Security
腾讯CDC
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic
Cloudbric
Cloudbric
T
The Exploit Database - CXSecurity.com
P
Proofpoint News Feed
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
Recent Commits to openclaw:main
Recent Commits to openclaw:main
B
Blog
V
Vulnerabilities – Threatpost
C
Check Point Blog
Google DeepMind News
Google DeepMind News
Google Online Security Blog
Google Online Security Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
Cisco Blogs
Schneier on Security
Schneier on Security
O
OpenAI News
K
Kaspersky official blog

AirTouchの小站

DNSMgr——聚合管理所有域名DNS解析+自动续签SSL证书并部署 | AirTouchの小站 雨云香港服务器简单测评 | AirTouchの小站 七牛云 AI 狂送 token 实测到底怎么样 | AirTouchの小站 记一次博客被攻击 | AirTouchの小站 给你的 Artalk 评论区配置验证码和垃圾评论检测 | AirTouchの小站 抓紧上车!免费 E3 开发者账号又来了! | AirTouchの小站 Vercel & Cloudflare Worker 项目推荐(2) | AirTouchの小站 用 Zmail 搭建自己的临时邮箱 | AirTouchの小站 IPv6反解域名?手把手带你搞 | AirTouchの小站 AirTouchの小站 AirTouchの小站 AirTouchの小站 AirTouchの小站 AirTouchの小站 macOS Tahoe 26中Electron架构卡顿的临时解决方案 | AirTouchの小站 用Obsidian插件增强Stellar写作体验 | AirTouchの小站 复习一下最小生成树 | AirTouchの小站 2025苹果秋季发布会亮点总结 | AirTouchの小站 分享几个artalk邮件通知模板 | AirTouchの小站 博客的图片应该存哪啊? | AirTouchの小站 Pic Smaller——自部署压缩图片的利器 | AirTouchの小站 企业微信的自定义域名邮箱太香了 | AirTouchの小站 所有道听途说,终获眼见为实 | AirTouchの小站 修复Vercel部署hexo导致文章的更新时间错误 | AirTouchの小站 jsDelivr国内公益加速镜像分享 | AirTouchの小站 搭建自己的busuanzi访问量统计服务 | AirTouchの小站 用Vercel和Netlify反代你的网站 | AirTouchの小站 用EdgeOne配置反向代理 丢掉丑陋的端口号 | AirTouchの小站 拼好鸽香港4区nat机器:月付3.5还要啥自行车! | AirTouchの小站 博客的新域名——xsl.im | AirTouchの小站 如何搭建自己的EdgeOne优选域名 | AirTouchの小站 用EdgeOne加速CloudflareR2存储桶 | AirTouchの小站 EdgeOne自动化上传证书并部署 | AirTouchの小站 你需要把PicGo换成PicList了! | AirTouchの小站 Cursor屏蔽中国大陆?给你解决方案! | AirTouchの小站 使用 Cloudflare Workers 自动获取必应每日壁纸 | AirTouchの小站 题解:P9509『STA - R3』Aulvwc | AirTouchの小站 题解:P11140 [APC001] E - Linear Map | AirTouchの小站 Phira多人联机服务器搭建&使用教程 | AirTouchの小站 腾讯云EdgeOne免费CDN加速你的网站 | AirTouchの小站 题解:P12646 [KOI 2024 Round 1] 升序 | AirTouchの小站 Cloudflare CDN优选IP加速你的网站 | AirTouchの小站 Giffgaff在线生成esim二维码 | Giffgaff sim转eSIM指南 | AirTouchの小站 AirTouchの小站 AirTouchの小站 Hexo Stellar 主题装修笔记 | AirTouchの小站 AirTouchの小站 AirTouchの小站 AirTouchの小站
Hexo 博客收录指南 | AirTouchの小站
AirTouch, me@airtouch.top · 2025-07-11 · via AirTouchの小站

前言

很多新手误以为:网站发布上线后,搜索引擎就会自动来爬取并收录。错。

搜索引擎对新站一向很“谨慎”——你没权重、没外链、更新频率低的情况下,搜索引擎甚至不会主动尝试抓取你的网站。

所以,如果你想让 Google、Bing 这些搜索引擎早点收录你写的文章,就得靠下面这些动作:

  • 主动提交站点
  • 提供 sitemap(站点结构图)
  • 配置 robots.txt(抓取权限说明)

操作步骤

安装插件

Hexo 本质上只是一个静态页面生成器,它不会自动帮你生成 sitemap、robots.txt、RSS 等 SEO 所需的结构化文件。

如果你不手动处理,搜索引擎甚至不知道你的网站有几篇文章、文章结构如何。

所以第一步,我们得手动安装插件:

$

npm install hexo-generator-sitemap --save

$

npm install hexo-generator-feed --save

这两个插件的作用:

  • hexo-generator-sitemap:生成 sitemap.xml / sitemap.txt
  • hexo-generator-feed:生成 RSS 订阅用的 atom.xml

修改站点配置

打开 _config.yml,添加下面的配置:

yml
sitemap:
  path:
    - sitemap.xml
    - sitemap.txt
  rel: false
  tags: true
  categories: true
  
feed:
  enable: true
  type: atom
  path: atom.xml
  limit: 20
  content_limit: 140
  content_limit_delim: ' '
  order_by: -date
  autodiscovery: true

接着执行命令:

$

hexo cl&&hexo g&&hexo s --save

配置 robots.txt

robots.txt 是一个写给搜索引擎爬虫的“网站抓取说明书”。它告诉搜索引擎:

  • 哪些页面允许抓取
  • 哪些页面禁止抓取
  • 网站结构图在哪里(Sitemap)

因为 Hexo 生成的是纯静态页面,我们需要手动创建 robots.txt 文件,并放到正确的位置。

在 source 文件夹中新建 robots.txt 文件

文件内容如下:

txt
User-agent: *
Allow: /

# Sitemap declarations
Sitemap: https://example.com/sitemap.xml
Sitemap: https://example.com/sitemap.txt
Sitemap: https://example.com/atom.xml

提交站点到各大搜索引擎

Google Search Console

Bing 站长平台

Bing 同时影响 Yahoo、DuckDuckGo、Ecosia 等搜索引擎,覆盖面比你想象得大。

效果验证 & 后续建议

完成以上步骤后,你可以通过以下方式检查:

  • 访问 example.com/sitemap.xml 是否能打开
  • 访问 example.com/robots.txt 是否生效
  • 查看各平台后台是否显示提交成功、是否开始抓取
  • 用 Google 的【URL 检查】功能手动加速首页抓取

提升收录率的额外建议:

  • 保持博客内容更新频率(哪怕每月 1 篇)
  • 多使用内链,提升页面相关性
  • 在其他平台留下你博客的外链(知乎/掘金/GitHub 等)
  • 不要一上线就删文章,保持内容稳定

参考文章

www.eilo.uk

https://www.eilo.uk/posts/3bf7dc85