From 73dff7cb8577ae1fa06a64779495efe4d86ecff5 Mon Sep 17 00:00:00 2001
From: Mimi <1119186082@qq.com>
Date: Wed, 20 May 2020 21:57:47 +0800
Subject: [PATCH] Optimize copy-btn & post-edit icon
---
_config.yml | 2 +-
scripts/helpers/engine.js | 2 +-
source/js/utils.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/_config.yml b/_config.yml
index 9557f172a..22f957216 100644
--- a/_config.yml
+++ b/_config.yml
@@ -242,7 +242,7 @@ post_meta:
categories: true
# Post wordcount display settings
-# Dependencies: https://github.com/next-theme/hexo-symbols-count-time
+# Dependencies: https://github.com/next-theme/hexo-word-counter
symbols_count_time:
separated_meta: true
item_text_post: true
diff --git a/scripts/helpers/engine.js b/scripts/helpers/engine.js
index 4cfb6b0d2..f441a1e4e 100644
--- a/scripts/helpers/engine.js
+++ b/scripts/helpers/engine.js
@@ -24,7 +24,7 @@ hexo.extend.helper.register('next_vendors', function(url) {
hexo.extend.helper.register('post_edit', function(src) {
const theme = hexo.theme.config;
if (!theme.post_edit.enable) return '';
- return this.next_url(theme.post_edit.url + src, '', {
+ return this.next_url(theme.post_edit.url + src, '', {
class: 'post-edit-link',
title: this.__('post.edit')
});
diff --git a/source/js/utils.js b/source/js/utils.js
index 212451d5c..031ff138d 100644
--- a/source/js/utils.js
+++ b/source/js/utils.js
@@ -89,7 +89,7 @@ NexT.utils = {
ta.readOnly = false;
const result = document.execCommand('copy');
if (CONFIG.copycode.show_result) {
- target.querySelector('i').className = result ? 'fa fa-check fa-fw' : 'fa fa-times fa-fw';
+ target.querySelector('i').className = result ? 'fa fa-check-circle fa-fw' : 'fa fa-times-circle fa-fw';
}
ta.blur(); // For iOS
target.blur();