
Butterfly主题v3.4.0及其以后版本基本已经实现完全去jquery化,而本帖有使用到jquery,不想再次引入js的可以考虑使用站内的原生JS计时器。

在[Blogroot]\_config.butterfly.yml的footer配置项添加时间栏,如果已经有在custom_text写入过内容的,可以在合适的位置插入span标签。
在[Blogroot]\themes\butterfly\source\css\目录下新建flipcountdown.css
在[Blogroot]\themes\butterfly\source\js\目录下新建flipcountdown.js和runtime.js
将下载的翻页时钟图片添加到[Blogroot]\themes\butterfly\source\img\目录下。
在[Blogroot]\_config.butterfly.yml的inject引入文件。
    inject:
      head:
+       - <link rel="stylesheet" href="/css/flipcountdown.css">
      bottom:
+       - <script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script>
+       - <script src="/js/flipcountdown.js"></script>
+       - <script data-pjax src="/js/runtime.js"></script>