Skip to content

Commit

Permalink
Optimize copy-btn & post-edit icon
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed May 20, 2020
1 parent f4a12dc commit 73dff7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/helpers/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '<i class="fa fa-pencil-alt"></i>', {
return this.next_url(theme.post_edit.url + src, '<i class="fa fa-pen-nib"></i>', {
class: 'post-edit-link',
title: this.__('post.edit')
});
Expand Down
2 changes: 1 addition & 1 deletion source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 73dff7c

Please sign in to comment.