Have a look at the following article about adding a copy to clipboard button in a Hugo project.
https://www.dannyguo.com/blog/how-to-add-copy-to-clipboard-buttons-to-code-blocks-in-hugo/
Also this forum topic:
Have a look at the following article about adding a copy to clipboard button in a Hugo project.
https://www.dannyguo.com/blog/how-to-add-copy-to-clipboard-buttons-to-code-blocks-in-hugo/
Also this forum topic: