Skip to content

Commit

Permalink
fix code highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
jkjoy committed Jul 9, 2024
1 parent c097f88 commit 024750f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'; // 设置默认语言
Expand Down
4 changes: 0 additions & 4 deletions post.php
Original file line number Diff line number Diff line change
@@ -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): ?>
Expand Down

0 comments on commit 024750f

Please sign in to comment.