diff --git a/layout/includes/third-party/comments/twikoo.pug b/layout/includes/third-party/comments/twikoo.pug index 8a164d5..5a18d17 100644 --- a/layout/includes/third-party/comments/twikoo.pug +++ b/layout/includes/third-party/comments/twikoo.pug @@ -40,4 +40,4 @@ script. loadTwikoo() } } - })() + })() \ No newline at end of file diff --git a/package.json b/package.json index 4f6dbbd..c098097 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-butterfly", - "version": "3.4.0-b3", + "version": "3.4.0-b4", "description": "A Simple and Card UI Design theme for Hexo", "main": "package.json", "scripts": { diff --git a/source/js/main.js b/source/js/main.js index 8886e87..6f08db4 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -71,7 +71,8 @@ document.addEventListener('DOMContentLoaded', function () { * 首頁top_img底下的箭頭 */ const scrollDownInIndex = () => { - document.getElementById('scroll-down').addEventListener('click', function () { + const $scrollDownEle = document.getElementById('scroll-down') + $scrollDownEle && $scrollDownEle.addEventListener('click', function () { btf.scrollToDest(document.getElementById('content-inner').offsetTop, 300) }) }