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

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

Hexo

做了一个支持 hexo markdown 里 mermaid 的插件 - V2EX 大佬们?有没有好看的 hugo 和 hexo 主题推荐呀? - V2EX hexo 行内公式渲染问题 - V2EX hexo delopy 如何添加一个 CNAME 文件 - V2EX 找一个简洁风格的主题。 - V2EX Hexo mermaid 支持问题 - V2EX hexo + next + github pages 搭建博客 - V2EX Hexo 插件博客自动备份至云端 - V2EX 做了一个 Java 迁移 csdn 博客到 hexo 功能 - V2EX 求助, Hexo 生成的网站地图无法被 Google Search Console 读取怎么办? - V2EX 发现一种全平台多端发布 hexo 博客的方法 - V2EX 有交换友链的吗 - V2EX 本地部署 hexo 后怎么打不开?http://localhost:4000 - V2EX Hexo 主题: Oliver - V2EX 可以长期运行 hexo server 吗? - V2EX Hexo 从 Vercel, Cloudflare Pages 这些平台消失了 - V2EX 还有人在用 hexo 吗?征集一下 hexo 博客,做友链 - V2EX 求一个 dogma 的极简 hexo 主题,非常的简约 - V2EX 「折腾」一个 hexo 插件 - V2EX hexo 像这样的系列文章是怎么弄的? - V2EX 请问 hexo 有 include 代码文件到 md 的插件吗? - V2EX hexo 这个问题有人能解决吗? - V2EX 分享一款自己写的开源 Hexo 流程图插件 hexo-filter-kroki - V2EX [月经贴]博客来一波友链😁 - V2EX 将自己在用的主题 (Pure) 移植到 Hexo 上了 - V2EX 关于 hexo 博客的 markdown 渲染器 - V2EX 分享自己原创的 hexo 主题 soul - V2EX HEXO 博客如何导入原来的帖子 - V2EX Hexo Next 主题中的 Pisces 和 Gemini 有什么区别? - V2EX hexo deploy 无法将 html 文件 push 到 github - V2EX 关于上传图片无法显示的玄学问题 - V2EX 维护了五年多的 Hexo 主题 Icarus 又大版本更新啦 - V2EX [hexo 插件] 关于 GIF 动画相关的 - V2EX 一个运行在树莓派上的小网站 - V2EX 使用 git hooks 部署 hexo 到阿里云 ECS,提示仓库不存在 - V2EX 又一个简陋自称简洁的 Hexo 主题: hexo-theme-yun - V2EX 博客友链有人添加一波吗 - V2EX github 账号没有设置 ssh,但是还是能连接到 github 中的 repository - V2EX 利用 Hexo 打造属于自己的网页版简历 - V2EX 博客放在 Coding 的注意了 - V2EX 分享一个自己写的 Hexo 主题 Ayer - V2EX 这是 hexo 的啥主题呀 - V2EX hexo 每次新增文章都要把之前的全编译一遍吗? - V2EX 求助一个 Hexo 主题的 CSS 格式的修改 - V2EX Hexo 4.0 发布 - V2EX 想写一个《你的名字》 主题的 hexo theme - V2EX HexoClient 1.2.6 发布,支持 hexo front-matter 特性 - V2EX
[hexo 插件] 向谷歌、必应、百度提交 URLs 以快速被收录 - V2EX
cjh0613 · 2020-07-14 · via Hexo

hexo 使用hexo-submit-urls-to-search-engine插件后,可主动推送 Hexo 博客新链接至谷歌、必应、百度搜索引擎站长平台以提升网站收录质量和速度

之前的插件都只支持百度,仅供“局域网”使用……

现在我的一篇文章刚发布 5 分钟,即可在必应搜索到。看吧,这就是 hexo-submit-urls-to-search-engine 的威力。

中文文档

安装

在 Hexo 根目录下执行指令:

$ npm install hexo-submit-urls-to-search-engine --save

使用

在 Hexo 根目录下的 _config.yml 文件中,添加以下配置项:

hexo_submit_urls_to_search_engine:
  # 提交最新的 n 个链接
  count: 10
  # 提交修改时间在 n 秒内的链接,单位秒。例如:
  # 有两个文件 a.txt 和 b.txt ,分别对应 https://yoursite.com/a.txt 和 https://yoursite.com/b.txt
  # 其更新时间距当前分别为 800s 和 1000s ( period 字段设为 900 )
  # 则 https://yoursite.com/a.txt 会被提交,https://yoursite.com/b.txt 不会
  period: 900
  # 提交链接的条件,可选值:count | period 。不同取值的含义如下:
  # count:应用上述的 count  配置项
  # period:应用上述的 period 配置项
  submit_condition: count
  # 是否向 Google 提交,可选值:1 | 0 ( 0:否; 1:是)
  google: 0
  # 是否向 Bing 提交,可选值:1 | 0 ( 0:否; 1:是)
  bing: 1
  # 是否向 Baidu 提交,可选值:1 | 0 ( 0:否; 1:是)
  baidu: 1
  # 文本文档的地址,要推送的链接会保存在此文本文档里
  txt_path: submit_urls.txt
  # 在百度站长平台中注册的域名
  baidu_host: https://yoursite.com/
  # 百度自动推送 API 的 token (获取方式见插件文档: https://cjh0613.github.io/blog/20200603HexoSubmitUrlsToSearchEngine.html )
  baidu_token: xxxxx
  # 在必应站长平台中注册的域名
  bing_host: https://yoursite.com/
  # 必应自动推送 API 的 token (获取方式见插件文档: https://cjh0613.github.io/blog/20200603HexoSubmitUrlsToSearchEngine.html )
  bing_token: xxxxx
  # 在谷歌站长平台中注册的域名
  google_host: https://yoursite.com/
  # 存放 google key 的 json 文件,放于网站根目录
  google_key_file: google_key.json

当然你也可以使用环境变量记录私钥,这样即使源码放在公开仓库,也不会泄露秘钥。

完成上述配置后,你需要在 Hexo 根目录下运行 hexo generate 指令,该指令会生成一个 .txt 文件来存储要推送的链接。

最后,在 Hexo 根目录下的 _config.yml 文件中,修改以下配置项,即可实现在执行 hexo deploy 指令时,自动推送你的链接:

deploy:
- type: cjh_google_url_submitter
- type: cjh_bing_url_submitter
- type: cjh_baidu_url_submitter

如果你使用插件时遇到了问题或者想进行更详细的设置,请查看插件的文档

如果可用,烦请至 GitHub 点赞支持一下!