Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorzhixuan <59254886+zhixuan2333@users.noreply.github.com>2022-01-19 03:12:29 +0300
committerGitHub <noreply@github.com>2022-01-19 03:12:29 +0300
commitca260db07e396fba61955e0262930fad3daa64cd (patch)
tree64ca613e69fe2a47d9d31e33f2f230108787ef84 /assets
parent4764a92df3f929f98741e59cee79fe90add523d3 (diff)
fix(shortcode): conflict with gist shortcode (#455)
Diffstat (limited to 'assets')
-rw-r--r--assets/ts/main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/ts/main.ts b/assets/ts/main.ts
index d79c127..625bbbc 100644
--- a/assets/ts/main.ts
+++ b/assets/ts/main.ts
@@ -58,7 +58,7 @@ let Stack = {
/**
* Add copy button to code block
*/
- const codeBlocks = document.querySelectorAll('.article-content .highlight');
+ const codeBlocks = document.querySelectorAll('.article-content > div.highlight');
const copyText = `Copy`,
copiedText = `Copied!`;
codeBlocks.forEach(codeBlock => {