bjacquemet / personal-web

Hugo Template for Freelancer Portfolio and Blog
MIT License
137 stars 107 forks source link

Add copy code button option #27

Open pbklink opened 2 years ago

pbklink commented 2 years ago

Includes a feature where a copy button can be added to all code blocks in a website.

This feature can be enabled by setting the following parameter in config.toml

copyCodeButtonEnabled = true

Note that this feature requires a JavaScript script. This script is included under the new static/js directory.