diff --git a/source/css/_layout/post.styl b/source/css/_layout/post.styl index cf0366a..2b3ab7c 100644 --- a/source/css/_layout/post.styl +++ b/source/css/_layout/post.styl @@ -266,6 +266,9 @@ img text-decoration: none #article-container + word-wrap: break-word + overflow-wrap: break-word + a color: $theme-link-color diff --git a/source/js/utils.js b/source/js/utils.js index 86dea92..0fb7a88 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -117,7 +117,7 @@ function snackbarShow (text, showAction, duration) { }) } -var Cookies = { +const Cookies = { get: function (name) { const value = `; ${document.cookie}` const parts = value.split(`; ${name}=`) @@ -143,11 +143,3 @@ if (GLOBAL_CONFIG.islazyload) { threshold: 0 } } - -window.debounce = debounce - -window.throttle = throttle - -window.isMobile = isMobile - -window.loadScript = loadScript