fi3ework / hexo-theme-archer

🎯 A smart and modern theme for Hexo.
https://fi3ework.github.io/hexo-theme-archer
MIT License
1.49k stars 274 forks source link

Add the code block button click copy function #366

Open liuyingqiao2019 opened 1 year ago

liuyingqiao2019 commented 1 year ago

In order to copy the code better, I added the code block button click copy function, and it adapts to all modes. This submission solves the problem of version conflict of jquery files between codes. When selecting a long code with only one line, this copy button will obscure the last few words of this line of code. Therefore, I changed the position of the copy button in the second submission so that the last word will not be blocked.

Stark-X commented 1 year ago