修复文章目录

This commit is contained in:
浪子
2024-07-01 14:16:35 +08:00
parent 5ab2179898
commit 8ed2e647a1
5 changed files with 32 additions and 10 deletions
+13 -1
View File
@@ -2,10 +2,22 @@
<footer id="footer" class="footer">
<?php echo allwords(); ?>
<div class="copyright">
<span>© <?php $this->options->title() ?> | Powered by <a href="https://typecho.org" target="_blank">Typecho</a> | Theme by <a href="https://github.com/Siricee" target="_blank">hexo-theme-Chic</a> | 移植 by <a href="https://imsun.org" target="_blank">Sun</a> </span>
<span>© <?php $this->options->title() ?> | Powered by <a href="https://typecho.org" target="_blank">Typecho</a> & <a href="https://github.com/Siricee/hexo-theme-Chic" target="_blank">Chic</a>| Theme by <a href="https://imsun.org" target="_blank">Sun</a> </span>
</div>
<?php $this->options->tongji(); ?>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function () {
var defaultLanguage = 'javascript'; // 设置默认语言
document.querySelectorAll('pre code').forEach(function (block) {
if (!block.classList.length) {
block.classList.add('language-' + defaultLanguage);
}
});
Prism.highlightAll();
});
</script>
</div>
</body>
</html>