ppoffice / hexo-theme-minos

A simple and retro styled Hexo theme, concentrated more on your ideas.
http://ppoffice.github.io/hexo-theme-minos
MIT License
765 stars 202 forks source link

Supported to copy code #73

Closed ddalpange closed 5 years ago

ddalpange commented 5 years ago

HighlightJS does not support to copy code, so it was created by myself.

plugins:
    clipboard: true
ppoffice commented 5 years ago

@ddalpange Good job! However, the top right corner is already occupied by the optional link if the user uses the following code block format as it's shown in https://blog.zhangruipeng.me/hexo-theme-minos/Using-Hexo-Tag-Plugins-in-Minos/#Code-Block

{% codeblock _.compact http://underscorejs.org/#compact Underscore.js %}
_.compact([0, 1, false, 2, '', 3]);
=> [1, 2, 3]
{% endcodeblock %}

Could you please place the copy button somewhere else? Also, please update the _config.yml.example so others know how to enable it.

ddalpange commented 5 years ago

I changed the code by your feedback :)