自动提交文章连接

master
李亚楠 9 months ago
parent 6d97a27f99
commit 7f43dbfb78
  1. 21
      _config.yml
  2. 9
      package-lock.json
  3. 1
      package.json
  4. 5
      yarn.lock

@ -115,11 +115,13 @@ theme: butterfly
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: ali-oss
region: oss-cn-beijing
accessKeyId: LTAI4Fswd2FDvYJybC6MbpJH
accessKeySecret: XcX2iMXRhKBIgc5Ev7jMKOPWvf9VcE
bucket: template-blog
- type: baidu_url_submitter
- type: indexnow_url_submitter
- type: ali-oss
region: oss-cn-beijing
accessKeyId: LTAI4Fswd2FDvYJybC6MbpJH
accessKeySecret: XcX2iMXRhKBIgc5Ev7jMKOPWvf9VcE
bucket: template-blog
# 站点地图
sitemap:
path: sitemap.xml
@ -132,10 +134,17 @@ feed:
path: atom.xml
limit: 20
baidu_url_submit:
count: 3 ## 比如3,代表提交最新的三个链接
count: 50 ## 比如3,代表提交最新的三个链接
host: www.dreamlyn.cn ## 在百度站长平台中注册的域名
token: 8qrbejM1ER8SkGIH ## 请注意这是您的秘钥, 请不要发布在公众仓库里!
path: baidu_urls.txt ## 文本文档的地址, 新链接会保存在此文本文档里
hexo_indexnow:
count: 50 # 数字或者 "latest"(=1)
txt_name: indexnow.txt # 链接文件名
apikey: 50bbb7641c3741edb0001a20a8f3b06b # 你的 apikey
server: bing # indexnow 服务器,可选值有:bing、yandex、indexnow
#重定向
alias:
bsrt/: html/bsrt.html

9
package-lock.json generated

@ -23,6 +23,7 @@
"hexo-generator-search": "^2.4.3",
"hexo-generator-sitemap": "^3.0.1",
"hexo-generator-tag": "^2.0.0",
"hexo-indexnow": "^1.1.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.0.0",
"hexo-renderer-pug": "^3.0.0",
@ -4997,6 +4998,14 @@
"node": ">=14"
}
},
"node_modules/hexo-indexnow": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/hexo-indexnow/-/hexo-indexnow-1.1.0.tgz",
"integrity": "sha512-LrJg0CJRiNybNoK9f5ESEKgxJH/W84yv3ZWRVSy8ocN1jgCGA7pV739Y+z8YOM6PcDMFj7iVcZPK/fWJPlmq9Q==",
"engines": {
"node": ">=18.0.0"
}
},
"node_modules/hexo-log": {
"version": "4.1.0",
"resolved": "https://registry.npmmirror.com/hexo-log/-/hexo-log-4.1.0.tgz",

@ -27,6 +27,7 @@
"hexo-generator-search": "^2.4.3",
"hexo-generator-sitemap": "^3.0.1",
"hexo-generator-tag": "^2.0.0",
"hexo-indexnow": "^1.1.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.0.0",
"hexo-renderer-pug": "^3.0.0",

@ -3053,6 +3053,11 @@ hexo-i18n@^2.0.0:
dependencies:
sprintf-js "^1.1.2"
hexo-indexnow@^1.1.0:
version "1.1.0"
resolved "https://registry.npmmirror.com/hexo-indexnow/-/hexo-indexnow-1.1.0.tgz"
integrity sha512-LrJg0CJRiNybNoK9f5ESEKgxJH/W84yv3ZWRVSy8ocN1jgCGA7pV739Y+z8YOM6PcDMFj7iVcZPK/fWJPlmq9Q==
hexo-log@^0.2.0:
version "0.2.0"
resolved "https://registry.npmmirror.com/hexo-log/-/hexo-log-0.2.0.tgz"

Loading…
Cancel
Save