add copy codeblock button#234
Merged
ivan-nginx merged 3 commits intotheme-next:masterfrom Apr 15, 2018
maple3142:master
Merged
Conversation
Member
|
I think need to move Lines 282 to 284 in 2cd0df2 codeblock:
border_radius:
copy_button: falseAnd language under hexo-theme-next/languages/en.yml Line 24 in 2cd0df2 post:
copy_button: Copy |
Member
|
Alright, just refactored as suggested in previous comment. Usage: codeblock:
copy_button: true@maple3142 thank's! 👍 |
This was referenced Apr 15, 2018
Closed
tongluyang
pushed a commit
to tongluyang/hexo-theme-next
that referenced
this pull request
Nov 19, 2019
* add copy codeblock button * arrow function to normal function * Refactored codeblock button.
stevenjoezhang
referenced
this pull request
in next-theme/hexo-theme-next
Aug 1, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
No copy button in codeblock.
Issue Number(s): #67 #222
What is the new behavior?
A copy button on top-right of code block.
Screens with this changes:

Link to demo site with this changes: https://blog.maple3142.net/
How to use?
In NexT
_config.yml:Does this PR introduce a breaking change?