fix code highlight

This commit is contained in:
浪子 2024-07-09 11:14:46 +08:00
parent c097f8815d
commit 024750ffd9
2 changed files with 2 additions and 4 deletions

View File

@ -7,6 +7,8 @@
<?php $this->options->tongji(); ?>
</footer>
<?php if ($this->options->showprism): ?>
<script src="<?php $this->options->themeUrl('prism.js'); ?>"></script>
<link rel="stylesheet" href="<?php $this->options->themeUrl('prism.css'); ?>" />
<script>
document.addEventListener('DOMContentLoaded', function () {
var defaultLanguage = 'javascript'; // 设置默认语言

View File

@ -1,9 +1,5 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<?php if ($this->options->showprism): ?>
<script src="<?php $this->options->themeUrl('prism.js'); ?>"></script>
<link rel="stylesheet" href="<?php $this->options->themeUrl('prism.css'); ?>" />
<?php endif; ?>
<div class="main">
<div class="container">
<?php if ($this->options->showtoc): ?>