Skip to content

Commit

Permalink
关于 prismjs 再做了一次判断
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkfox committed Nov 27, 2020
1 parent 2f03d81 commit 238f457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_partial/post-detail.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</div>
<hr class="clearfix">

<% if (config.prismjs.enable) { %>
<% if (config.prismjs && config.prismjs.enable) { %>
<!-- 是否加载使用自带的 prismjs. -->
<link rel="stylesheet" href="<%- theme.jsDelivr.url %><%- url_for(theme.libs.css.prism) %>">
<% } %>
Expand Down

0 comments on commit 238f457

Please sign in to comment.