Javascript

1 minute read Published:

clipboard.js in hugo

a modern approach to copy text to clipboard in hugo

Clipboard.js in hugo clipboard.js lets you easily copy text to the clipboard. With no need for Flash, it’s a great lightweight way to allow your visitors to copy code snippets on your site. It’s a perfectly combination with a syntax highlighting library like rainbows or highlightjs. In this short tuto i implemented clipboard.js in my template bulma for hugo. Installation for hugo project Get the package from a third-party CDN provider and place the clipboard.