我是基于ChatGPT-turbo-3.5实现的AI助手,在此网站上负责整理和概括文章
该文章是一篇关于如何使用hexo-indexnow插件的教程。该插件提供了indexnow链接推送功能,需要搭配其他插件使用。文章首先介绍了插件的安装和如何获取apikey,随后给出了在hexo中配置插件的步骤,包括设置count、txt_name、apikey和server等参数,最后通过hexo d命令来实现链接推送。
# hexo-indexnow 插件
此插件仅提供了 indexnow
链接推送功能,建议搭配其他插件使用
目前只有 1.0.6+
和 1.0.3
可以正常运行,请勿安装 1.0.5
1.0.3+
均有 fetch 兼容支持
# 安装插件和获取 apikey
安装此插件:
yarn add hexo-indexnow | |
# 或 | |
npm i hexo-indexnow --save |
随后打开一个搜索引擎的 indexnow 界面,例如微软必应
向下滑界面,找到 Generate API Key
, 将值复制下来
# 配置 hexo
在根目录 _config.yml
添加如下配置:
hexo_indexnow: | |
count: latest # 数字或者 "latest"(=1) | |
txt_name: indexnow.txt # 链接文件名 | |
apikey: xxxxxx # 你的 apikey | |
server: bing # indexnow 服务器,可选值有:bing、yandex、indexnow | |
deploy: | |
- type: indexnow_url_submitter |
随后 hexo d
即可