I am looking for zola themes that have a “Copy to clipboard button” for code snippets
Looking for something similar to mdbook https://rust-lang.github.io/mdBook/cli/index.html
Anyone knows of existing themes that have this feature? I need this for my technical documentation
Roman
2
You can add it for any theme, it’s the JS library https://clipboardjs.com/
2 Likes
Thank you, will follow the docs on extending an existing theme and add it.
keats
4
Yep, it would require JS so very unlikely to be bundled with Zola.
1 Like
You don’t need to do that anymore.
2 Likes