hexo-baidupush

Submit the website to Baidu regularly

Usage no npm install needed!

<script type="module">
  import hexoBaidupush from 'https://cdn.skypack.dev/hexo-baidupush';
</script>

README

说明

此插件为HEXO博客将文章自动提交百度使用。

使用方式

  1. 安装此插件

    npm i hexo-baidupush

  2. 频率设置

    默认情况下在每天早上8点和晚上6点会推送一次。当然你可以调,只需要在全局配置文件添加字段commit_cron即可,遵循GitHub Actions的cron规则。

    commit_cron: 分钟 小时 日 月 周 年
    

    时区为UTC时间。

  3. GitHub Actions密钥设置

    去GitHub pages页面,打开actions服务(如果从没用过actions)。接下来添加密钥。

    image-20200930190800396

    image-20200930190943296

其他问题

  1. 关于频率

    默认情况下,每天早上8点和晚上6点会触发一次提交。当然你可以手动对仓库点个star,也可以测试是否正确。

  2. 对哪个仓库设置

    需要设置的是生成后的仓库,不是源码仓库。例如:https://github.com/tzki/tzki.github.io