ion.href = "/";
      });
    });

    // 高亮代码
    hljs.addPlugin({
      'after:highlightElement': ({ el, result }) => {
        // move the language from the result into the dataset
        el.setAttribute('lang', result.language);
        el.classList.add('copyable');

        // 创建复制代码按钮
        const copyBtn = document.createElement('span');
        copyBtn.classList.add('copy-code-btn');
        copyBtn.textContent = '复制代码';

        // 将复制代码按钮添加到代