mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 20:13:31 +08:00
fix(shortcode): fix gist shortcode
This commit is contained in:
parent
d165621568
commit
a2a12ea8e7
@ -58,7 +58,7 @@ let Stack = {
|
|||||||
/**
|
/**
|
||||||
* Add copy button to code block
|
* Add copy button to code block
|
||||||
*/
|
*/
|
||||||
const codeBlocks = document.querySelectorAll('.article-content .highlight');
|
const codeBlocks = document.querySelectorAll('.article-content > div.highlight');
|
||||||
const copyText = `Copy`,
|
const copyText = `Copy`,
|
||||||
copiedText = `Copied!`;
|
copiedText = `Copied!`;
|
||||||
codeBlocks.forEach(codeBlock => {
|
codeBlocks.forEach(codeBlock => {
|
||||||
|
Loading…
Reference in New Issue
Block a user