编程笔记

lifelong learning & practice makes perfect

seo|bing站长.使用indexnow自动推送页面到搜索引擎

IndexNow

使用IndexNow可能更加及时推送,也是Bing Webmaster现在推荐的方式

配置

使用github actions定时推送,配置如下,indexnow秘钥存储到github仓库的”Secrets and variables”

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: "IndexNow"
on:
schedule:
# Scheduled in UTC.
- cron: '0 0,12 * * *'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
check-and-submit:
runs-on: ubuntu-latest
steps:
- name: indexnow-action
uses: bojieyang/indexnow-action@v2
with:
sitemap-location: "https://programnotes.cn/sitemap.xml"
since: 1
since-unit: "day"
key: ${{ secrets.INDEXNOW_KEY }}

参考

欢迎关注我的其它发布渠道