diff --git a/assets/js/code.js b/assets/js/code.js index 2cd3474de..88ae18d3e 100644 --- a/assets/js/code.js +++ b/assets/js/code.js @@ -13,7 +13,7 @@ function createCopyButton(highlightDiv) { } async function copyCodeToClipboard(button, highlightDiv) { - const codeToCopy = highlightDiv.querySelector(":last-child > .chroma > code").innerText; + const codeToCopy = highlightDiv.querySelector(":last-child").innerText; try { result = await navigator.permissions.query({ name: "clipboard-write" }); if (result.state == "granted" || result.state == "prompt") { diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index f6858310e..476eaeeea 100755 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -8,6 +8,7 @@ Welcome to Blowfish, one of the most flexible and robust Hugo themes. It is desi ```node npx blowfish-tools ``` +