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.
I have been working on a large set of documentation for a prototype that will eventually make it into a product. One issue with the publishing system at my company is that it makes doing prototypes, or really anything not within the rigidly and narrowly scoped model, difficult to set up. It takes a lot of work just to get to the point where you can begin writing.
Since time was of the essence and writing is expensive, I decided to do the prototype outside of the publishing system.